# pw code mcp

> Source: https://parallelworks.com/docs/cli/pw/code/mcp

## pw code mcp

Manage MCP servers for pw code

### Synopsis

Manage the MCP servers pw code connects to.

Servers are stored in config files at four scopes, from lowest to
highest load precedence: user (~/.config/agents/settings.json),
project (<workspace>/.mcp.json), agents (<workspace>/.agents/settings.json),
and local (<workspace>/.agents/settings.local.json). At load time the
highest-precedence file with any servers supplies the entire set.

### Options

```
  -h, --help   help for mcp
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw code](/docs/cli/pw/code)	 - AI coding agent
* [pw code mcp add](/docs/cli/pw/code/mcp/add)	 - Add an MCP server
* [pw code mcp get](/docs/cli/pw/code/mcp/get)	 - Show one MCP server's configuration
* [pw code mcp list](/docs/cli/pw/code/mcp/list)	 - List configured MCP servers across config files
* [pw code mcp remove](/docs/cli/pw/code/mcp/remove)	 - Remove an MCP server
