# MCP

Source: https://zshot-cli.com/reference/agents/mcp/
Markdown: https://zshot-cli.com/reference/agents/mcp/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Agents](https://zshot-cli.com/reference/agents/)

Serves ZShot to an agent as an MCP server, over one of two transports:

| Transport | Run |
| --- | --- |
| HTTP | [`--server`](/reference/server) with [`--server-enable-mcp`](/reference/flags/server/server-enable-mcp), which serves the endpoint at `/mcp` |
| stdio | [`--mcp-local-server`](/reference/flags/agents/mcp-local-server), which the agent launches as a subprocess and talks to over stdin and stdout |

## Example

Add a server running on `localhost:3000` to Claude Code:

```sh
claude mcp add --transport http zshot http://localhost:3000/mcp
```

Add a local server to Claude Code:

```sh
claude mcp add --transport stdio zshot -- zshot --mcp-local-server
```

## Related

Flags:

- [`--server-enable-mcp`](https://zshot-cli.com/reference/flags/server/server-enable-mcp/)
- [`--mcp-local-server`](https://zshot-cli.com/reference/flags/agents/mcp-local-server/)

Topics:

- [Quick start](https://zshot-cli.com/reference/agents/quickstart/)
- [Model Context Protocol](https://modelcontextprotocol.io/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
  - [Agents](https://zshot-cli.com/reference/agents/)
    - [Quick start](https://zshot-cli.com/reference/agents/quickstart/)
    - **MCP**
    - [Skills](https://zshot-cli.com/reference/agents/skills/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

