# MCP server

> The Sommatic AI docs MCP server lets Claude Code, Codex, Cursor and any MCP client search and read these docs, nodes, expressions and API operations as tools.

Source: https://docs.sommatic.ai/en/agents/mcp/ (updated 2026-11-26)

With the MCP server your agent does not need to know URLs: it asks the server to search the docs or to return a page, a node, an expression or an API operation, and gets the answer with the docs URL it comes from. The server reads the same [catalog](https://docs.sommatic.ai/en/agents/llms-txt.md) and Markdown twins this site publishes, so it always answers from the current docs.

- **Address:** `https://docs.sommatic.ai/mcp` (streamable HTTP).
- **Access:** read-only and without authentication. It serves the public docs only, never data of your organization.
- **Languages:** every tool takes `locale`: `en` (default), `es` or `zh`.

## Set it up

**Claude Code**

```bash
claude plugin marketplace add sommatic/sommatic-agent-toolkit
claude plugin install sommatic@sommatic
```

The plugin adds the MCP server and the [skills](https://docs.sommatic.ai/en/agents/skills.md) in one step. To add only the server:

```bash
claude mcp add --transport http --scope user sommatic-docs https://docs.sommatic.ai/mcp
```

**Codex**

```bash
codex mcp add sommatic-docs --url https://docs.sommatic.ai/mcp
```

**Cursor**

Add the server to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):

```json
{ "mcpServers": { "sommatic-docs": { "url": "https://docs.sommatic.ai/mcp" } } }
```

**Any agent**

```bash
npx @sommatic/cli agent setup
```

The CLI finds Claude Code, Codex and Cursor on your machine, shows what it will change and asks before applying it. See [CLI](https://docs.sommatic.ai/en/agents/cli.md).

## Tools

| Tool                                            | Returns                                                                                                                                                                     |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `search_docs(query, locale?, product?, limit?)` | Pages ranked by title, slug and description, with their URL and Markdown twin.                                                                                              |
| `read_page(path_or_url, locale?)`               | The Markdown of a page, from a URL, a path (`/es/nodes/flow.if`) or a slug (`workflows`).                                                                                   |
| `list_nodes(family?, status?)`                  | Node slugs, names, families, status and a one-line summary.                                                                                                                 |
| `get_node(slug)`                                | One node: config fields, ports, status and the output paths you read in expressions.                                                                                        |
| `list_expressions(group?)`                      | Every expression variable and helper, grouped as the workflow editor groups them, plus the JavaScript built-ins.                                                            |
| `get_expression(name)`                          | One expression name (`$json`, `$ifEmpty`, `Math.round`…): signature, parameters, return value, errors and examples. A name that does not exist returns what to use instead. |
| `get_api_endpoint(method, path)`                | One API operation with its parameters, body and responses; the path may be concrete or templated.                                                                           |
| `get_git_sync_schema(kind)`                     | The JSON Schema of a Git Sync `package`, `environment` or `resource-header`.                                                                                                |
| `list_commands(kind?)`                          | The Command Center commands, `read` or `exec`.                                                                                                                              |

Check node slugs, config fields and ports with `get_node`, expression names with `get_expression` and API calls with `get_api_endpoint` before your agent writes them, and cite the URL each answer gives.

## Next steps

- [CLI](https://docs.sommatic.ai/en/agents/cli.md): The same docs from your terminal.
- [Skills](https://docs.sommatic.ai/en/agents/skills.md): Focused instructions for Sommatic AI tasks.
