# P31 Sovereign CLI MCP server

> Provides an autonomous AI agent and MCP server with 133 tools for neurodivergent support, session management, and design compliance.

- Repository: https://github.com/p31labs/p31-cli
- Page: https://hostedmcp.org/servers/p31labs/p31-cli
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 3.1.6

## Install

### Claude Code

```sh
claude mcp add p31-cli -- npx -y @p31ca/cli
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "p31-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@p31ca/cli"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "p31-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@p31ca/cli"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"p31-cli","type":"stdio","command":"npx","args":["-y","@p31ca/cli"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "p31-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@p31ca/cli"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add p31-cli -- npx -y @p31ca/cli
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.p31-cli]
command = "npx"
args = ["-y", "@p31ca/cli"]
```

### Gemini CLI

```sh
gemini mcp add -s user p31-cli npx -- -y @p31ca/cli
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "p31-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@p31ca/cli"
      ]
    }
  }
}
```

## FAQ

### What tools are available via the MCP server?

The MCP server provides 133 tools organized across 10 categories including cognitive support, design compliance, and session state.

### Which LLM providers are supported?

The system supports Anthropic, Google Gemini, and OpenRouter.

### How can I run the MCP server?

You can run it as a stdio server using the 'p31 mcp' command or as an HTTP server using 'p31 mcp:http'.
