# Can cursor cli support add mcp server parameter?

**URL:** <https://forum.cursor.com/t/can-cursor-cli-support-add-mcp-server-parameter/167812>\
**Category:** Feature Requests\
**Tags:** mcp, cli\
**Created:** [August 9, 2026, 12:32pm UTC](https://forum.cursor.com/t/can-cursor-cli-support-add-mcp-server-parameter/167812 "2026-08-09T12:32:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiltwind](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tiltwind/32/117041_2.png) [@tiltwind](https://forum.cursor.com/u/tiltwind)\
**Post date:** [August 9, 2026, 12:32pm UTC](https://forum.cursor.com/t/can-cursor-cli-support-add-mcp-server-parameter/167812/1 "2026-08-09T12:32:11Z")

</div>

My product starts claude code/codex/cursor cli to finish some works. But cursor cli does not support add MCP server from command line parameter. Cursor sdk can do that , but we don’t want embed cursor in our product, which focus on main product features, only call agent to do separated works.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [August 10, 2026, 4:23pm UTC](https://forum.cursor.com/t/can-cursor-cli-support-add-mcp-server-parameter/167812/4 "2026-08-10T16:23:56Z")

</div>

Hey, thanks for the request. A couple quick clarifications since part of this is already covered.

Cursor CLI can manage MCP servers from the terminal without embedding the SDK:

```bash
# Register an MCP server
agent mcp add <name> -- <command> [args...]

# List servers
agent mcp list

# Auto-approve MCPs in headless runs
agent --approve-mcps -p "..."

```

Also, the CLI picks up MCP config from `.cursor/mcp.json` at both the project level in the working directory and globally at `~/.cursor/mcp.json`. So your product can just write `.cursor/mcp.json` into the working folder before running `agent`, and the server will be picked up. No SDK needed.

Docs: [MCP | Cursor Docs](https://cursor.com/docs/cli/mcp)

If you specifically need an ephemeral inline parameter to pass MCP server config in a single call without writing a file, like `--mcp-config` in Claude Code, there isn’t a flag for that right now. I’ll pass this as feedback to the team. Let me know if the `.cursor/mcp.json` option covers your use case, or if you really need a per-run flag.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [November 8, 2026, 4:24pm UTC](https://forum.cursor.com/t/can-cursor-cli-support-add-mcp-server-parameter/167812/5 "2026-11-08T16:24:09Z")

</div>

Closed on November 8, 2026, 4:24pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
