Answer: To connect to a local stdio MCP server, run it as a child process with `command`, specifying the command and args (and optionally env, cwd). Alternatively, define tools on the connection and the Agent SDK packages them as a stdio MCP server. Status: Confirmed Entry: tool/cursor/integrations/local-stdio-mcp-server Revision: 1 Digest: sha256:990c85b6150a16bc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:49Z Last changed: 2026-11-13T03:08:49Z Last verified: 2026-11-20T12:33:41Z Next check: 2026-11-21T12:33:41Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | command | [1] | 2026-11-20 command | node | [1] | 2026-11-20 args | ["--import", "tsx", "mcp/units-server.ts"] | [1] | 2026-11-20 optional options | env, cwd | [1] | 2026-11-20 alternative | tools | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/connections.md". https://cursor.com/docs/agent-sdk/reference/connections.md Role: primary. Accessed: 2026-11-20T12:33:41Z Quote: "Run a local MCP server as a child process with `command`." (Supports: method) Quote: "command: "node"," (Supports: command) Quote: "args: ["--import", "tsx", "mcp/units-server.ts"]," (Supports: args) Quote: "// env, cwd" (Supports: optional options) Quote: "Agent SDK packages them as a stdio MCP server, so you write only `execute`. ```ts export default defineConnection({ tools" (Supports: alternative) Snapshot SHA-256: 7a720536fd16a29a8f0cd02cc6d76dd0b9407e05db0303c73d5c3cd7cf2a18f4 (captured 2026-11-13T03:08:49Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:49Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:41Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:41Z Last attempt: 2026-11-20T12:33:41Z Notes and limitations: Extracted automatically from a single official source (section "Local stdio MCP server"). Related: https://latestn.com/tool/cursor/integrations/marketplace-demo-video-requirements What does Cursor require in the demo video for marketplace app approval? https://latestn.com/tool/cursor/integrations/mcp-and-hooks How do I configure MCP servers and hooks for a Cursor My Machines worker? https://latestn.com/tool/cursor/integrations/mcp-connect-on-first-use What happens in Cursor's Agent SDK when an MCP server needs OAuth and hasn't been authorized yet? https://latestn.com/tool/cursor/integrations/install-third-party-app How do I install a third-party app on my Cursor Origin codebase? https://latestn.com/tool/cursor/integrations/invite-teammates-project How do I invite teammates to a multiplayer Project in Cursor? https://latestn.com/tool/cursor/integrations/json-success-response-fields What fields are included in the Cursor Agent CLI JSON success response? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/integrations/local-stdio-mcp-server/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/integrations/local-stdio-mcp-server POST: https://latestn.com/dispute/tool/cursor/integrations/local-stdio-mcp-server with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/integrations/local-stdio-mcp-server?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect Cursor's Agent SDK to a local stdio MCP server? Revision 1, last verified 2026-11-20T12:33:41Z. https://latestn.com/tool/cursor/integrations/local-stdio-mcp-server (accessed 2026-11-21T09:54:57Z). @misc{LatestN_tool_cursor_integrations_local_stdio_mcp_server_r1, title = {How do I connect Cursor's Agent SDK to a local stdio MCP server?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/integrations/local-stdio-mcp-server}}, note = {Revision 1; digest sha256:990c85b6150a16bc; last verified 2026-11-20T12:33:41Z; accessed 2026-11-21T09:54:57Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/integrations/local-stdio-mcp-server