Cursor¶
Official docs:
Config Files¶
Project scope:
.cursor/mcp.json
Global scope:
~/.cursor/mcp.json
Cursor CLI and the editor share the same MCP configuration. Project config overrides global config.
Example Config¶
{
"mcpServers": {
"yt-text": {
"command": "yt-text"
}
}
}
If yt-text is not on PATH, replace "yt-text" with an absolute path.
Verify¶
If you use the CLI:
cursor-agent mcp list
cursor-agent mcp list-tools yt-text
In the editor, restart Cursor if needed and confirm the server appears in the available MCP tools for the agent.
Notes¶
- Cursor supports variable interpolation in
command,args,env,url, andheaders, butyt-textdoes not need any extra variables for the base install path. - Project scope is the right default when the repo should carry the MCP config.