cursor-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cursor Agent MCP Server
An MCP (Model Context Protocol) server that wraps the Cursor CLI agent, enabling Claude Code and other MCP clients to delegate tasks to Cursor's AI agent.
Features
cursor_agent - Execute tasks with full Cursor agent capabilities (file writing, bash commands, etc.)
cursor_plan - Read-only planning mode to design approaches before coding
cursor_ask - Read-only Q&A mode for questions about the codebase
cursor_status - Check Cursor agent authentication status
cursor_resume - Resume previous Cursor agent conversations
Related MCP server: codex-mcp-tool
Prerequisites
Install the Cursor CLI agent:
curl https://cursor.com/install -fsS | bashAuthenticate:
agent loginInstall Python dependencies:
pip install fastmcp
Usage
With Claude Code
Add to your Claude Code MCP configuration (~/.claude.json or project settings):
{
"mcpServers": {
"cursor-agent": {
"command": "python",
"args": ["/path/to/cursor_mcp_server.py"],
"env": {
"CURSOR_WORKSPACE_PATH": "/path/to/your/workspace"
}
}
}
}Environment Variables
Variable | Description | Default |
| Default working directory for agent tasks |
|
| Path to the cursor agent executable |
|
| Default timeout in seconds |
|
| Default model for agent tasks |
|
Running Standalone
python cursor_mcp_server.pyTool Reference
cursor_agent
Execute tasks with full agent capabilities.
cursor_agent(
prompt="Implement a login form with validation",
workspace="/path/to/project", # optional
force=True, # allow file modifications
timeout=300, # seconds
model="gpt-5.2-codex" # optional model override
)cursor_plan
Design an approach before implementing.
cursor_plan(
prompt="How should I refactor the authentication system?",
workspace="/path/to/project"
)cursor_ask
Ask questions about the codebase.
cursor_ask(
prompt="What does the DatabaseManager class do?",
workspace="/path/to/project"
)cursor_resume
Resume a previous conversation.
cursor_resume(
prompt="Continue with the next step",
session_id="abc123", # optional, omit for latest session
workspace="/path/to/project"
)License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server that lets any agent or MCP host delegate tasks to the Cursor CLI agent for fast, headless execution. Supports task delegation, project discovery, file analysis, and follow-up sessions.314 npm5MIT
- AlicenseBqualityCmaintenanceMCP server connecting Claude/Cursor to Codex CLI, enabling code analysis via @ file references, multi-turn conversations, sandboxed edits, and structured change mode.13100 npm24MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that enables Cursor to delegate complex, multi-step tasks to specialized subagents, including general-purpose and explore agents, with automatic discovery of existing Claude subagents.1 npm1MIT
- AlicenseBqualityDmaintenanceA fast, hardened MCP server that lets any MCP host drive the Cursor Agent CLI for heavy repo-aware tasks like search, analysis, planning, and edits, keeping host context small and token costs low.101MIT