|
| 1 | +--- |
| 2 | +title: Sim MCP |
| 3 | +description: Build, run, and manage everything in your Sim workspace from Claude, Codex, Cursor, and other MCP apps |
| 4 | +--- |
| 5 | + |
| 6 | +import { Callout } from 'fumadocs-ui/components/callout' |
| 7 | +import { Tab, Tabs } from 'fumadocs-ui/components/tabs' |
| 8 | + |
| 9 | +The Sim MCP server gives an AI app the whole Sim API through the |
| 10 | +[Model Context Protocol](https://modelcontextprotocol.io). Your agent can list |
| 11 | +workspaces, run and deploy workflows, query and edit tables, manage files and |
| 12 | +knowledge bases, read run logs, and more. It covers the same operations as the |
| 13 | +[API](/api-reference/getting-started) and the [CLI](/cli). |
| 14 | + |
| 15 | +| Deployment | Server URL | |
| 16 | +| --- | --- | |
| 17 | +| Sim Cloud | `https://mcp.sim.ai/mcp` | |
| 18 | +| Self-hosted | `https://<your-sim-host>/api/mcp`, or your [`SIM_MCP_URL`](/platform/self-hosting/environment-variables) | |
| 19 | + |
| 20 | +The server uses the Streamable HTTP transport. Sign in with OAuth, the default |
| 21 | +in every app below, or send an [API key](/mcp/authentication#api-keys). |
| 22 | + |
| 23 | +## Connect an app |
| 24 | + |
| 25 | +<Tabs items={['Claude Code', 'Claude', 'Codex', 'Cursor', 'VS Code']}> |
| 26 | + <Tab value="Claude Code"> |
| 27 | + ```bash |
| 28 | + claude mcp add --transport http sim https://mcp.sim.ai/mcp |
| 29 | + ``` |
| 30 | + |
| 31 | + Open `/mcp` in Claude Code, select **sim**, and sign in to Sim in the |
| 32 | + browser. |
| 33 | + </Tab> |
| 34 | + <Tab value="Claude"> |
| 35 | + Add `https://mcp.sim.ai/mcp` as a custom connector under **Settings → |
| 36 | + Connectors**, then connect it and sign in to Sim. For Team or Enterprise, |
| 37 | + an owner first adds it under **Organization settings → Connectors**. See |
| 38 | + [Claude's custom connector instructions](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). |
| 39 | + </Tab> |
| 40 | + <Tab value="Codex"> |
| 41 | + ```bash |
| 42 | + codex mcp add sim --url https://mcp.sim.ai/mcp |
| 43 | + ``` |
| 44 | + |
| 45 | + Complete the browser sign-in. To sign in again later, run |
| 46 | + `codex mcp login sim`. |
| 47 | + </Tab> |
| 48 | + <Tab value="Cursor"> |
| 49 | + Add `sim` to `mcpServers` in `~/.cursor/mcp.json`, then enable it in |
| 50 | + Cursor and sign in to Sim: |
| 51 | + |
| 52 | + ```json |
| 53 | + { |
| 54 | + "mcpServers": { |
| 55 | + "sim": { "url": "https://mcp.sim.ai/mcp" } |
| 56 | + } |
| 57 | + } |
| 58 | + ``` |
| 59 | + </Tab> |
| 60 | + <Tab value="VS Code"> |
| 61 | + Add `sim` to `.vscode/mcp.json`, then start it and sign in to Sim: |
| 62 | + |
| 63 | + ```json |
| 64 | + { |
| 65 | + "servers": { |
| 66 | + "sim": { "type": "http", "url": "https://mcp.sim.ai/mcp" } |
| 67 | + } |
| 68 | + } |
| 69 | + ``` |
| 70 | + </Tab> |
| 71 | +</Tabs> |
| 72 | + |
| 73 | +Any other app that supports remote MCP servers with OAuth works the same way: |
| 74 | +give it the server URL and choose **Streamable HTTP** if asked. |
| 75 | + |
| 76 | +<Callout type="info"> |
| 77 | + Claude's hosted connectors call your server from Claude's infrastructure, so a |
| 78 | + self-hosted Sim must be reachable from the internet. A `localhost` URL works |
| 79 | + only with apps that run on your machine, such as Claude Code, Codex, Cursor, |
| 80 | + and VS Code. |
| 81 | +</Callout> |
| 82 | + |
| 83 | +## Try it |
| 84 | + |
| 85 | +Ask your app: |
| 86 | + |
| 87 | +- "List my Sim workspaces and the tables in each." |
| 88 | +- "Run the `lead-scoring` workflow with this input and show me the result." |
| 89 | +- "Find failed runs from the last day and explain what went wrong." |
| 90 | +- "Create a table of our open support tickets and add these rows." |
| 91 | + |
| 92 | +The agent finds the right operation, reads its inputs, and calls it. See |
| 93 | +[Tools](/mcp/tools) for how that works. |
| 94 | + |
| 95 | +## What your agent can do |
| 96 | + |
| 97 | +The server acts as you. It sees the workspaces you can see, with your role in |
| 98 | +each, and every call is authorized, rate limited, and logged exactly like the |
| 99 | +same request to the API. Reads leave your resources unchanged, and apps can ask |
| 100 | +you to confirm each change. See [Authentication](/mcp/authentication) to limit |
| 101 | +an app to reads. |
| 102 | + |
| 103 | +## Other Sim MCP surfaces |
| 104 | + |
| 105 | +This server is for operating Sim. Two other MCP features do different jobs: |
| 106 | + |
| 107 | +- [Search MCP](/search/mcp) searches your organization's indexed sources. |
| 108 | +- [MCP deployment](/workflows/deployment/mcp) exposes your own workflows as |
| 109 | + tools, and [MCP tools](/agents/mcp) connect external servers to Sim agents. |
0 commit comments