Cursor Agent MCP
C

Cursor Agent MCP

An MCP server based on the cursor-agent CLI, providing tools for code analysis, search, planning, and editing to help Claude Code reduce token usage and costs
2 points
0

What is the Cursor Agent MCP Server?

The Cursor Agent MCP Server is an intelligent code analysis tool that integrates with code editors (such as Claude Code) through the MCP protocol to provide powerful code understanding, search, editing suggestions, and project planning functions. It can understand the structure of the codebase, provide intelligent suggestions, and help developers work more efficiently

How to use the Cursor Agent MCP Server?

After installation and configuration, you can directly use various tool commands in the supported code editor to analyze code, search for specific functions, plan development tasks, or get code editing suggestions. The server will automatically handle complex code analysis tasks

Applicable scenarios

Suitable for scenarios such as code review, project architecture analysis, code search, refactoring planning, learning new codebases, and automated code editing suggestions, especially for handling large and complex projects

Main features

Intelligent code analysis
Deeply analyze the structure of code files and provide an architecture overview and module boundary descriptions
Advanced code search
Intelligent code search supporting wildcard filtering to quickly locate specific functions or patterns
Development task planning
Generate detailed implementation plans and steps based on development goals
Intelligent code editing
Provide code refactoring and optimization suggestions and support the dry-run mode to preview changes
Multi-format output
Support multiple output formats such as text, Markdown, and JSON to meet different usage needs
Model flexibility
Configurable to use different AI models to balance cost and performance requirements
Advantages
Significantly reduce token usage and lower AI usage costs
Precise file scope control to avoid unnecessary context loading
Multiple professional tools optimized for different development scenarios
Flexible configuration options supporting environment variables and parameter overrides
Secure process management to avoid shell injection risks
Limitations
The cursor-agent CLI tool needs to be installed in advance
Configuration is relatively complex and requires setting environment variables
Depends on the availability of external AI model services
Requires a certain level of network connection stability

How to use

Environment preparation
Ensure that Node.js 18+ and the cursor-agent CLI tool are installed
Install dependencies
Enter the project directory and install the necessary dependency packages
Configure the editor
Add server settings to the MCP configuration of the code editor
Environment variable configuration
Set the necessary environment variables (optional but recommended)
Start and use
After the server is started, you can use various tool commands in the editor

Usage examples

Project architecture analysis
Quickly understand the structure and module relationships of a newly taken - over project
Code function search
Find all places in the project that use a specific API or pattern
CI/CD process planning
Set up an automated testing and deployment process for the project
Code refactoring suggestions
Get professional suggestions for code optimization and refactoring

Frequently Asked Questions

How to solve the 'cursor-agent not found' error?
Why does the tool terminate unexpectedly during execution?
How to view the specific prompts used by the tool?
What are the differences in output formats?
How to control usage costs?

Related resources

Official documentation of the MCP protocol
Official technical documentation and specifications of the Model Context Protocol
cursor-agent CLI project
Source code and documentation of the cursor-agent command - line tool
Official Node.js website
Official download and documentation of the Node.js runtime environment
Claude Code editor
An intelligent code editor supporting the MCP protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "cursor-agent": {
      "command": "node",
      "args": ["/abs/path/to/cursor-agent-mcp/server.js"],
      "env": {
        "CURSOR_AGENT_ECHO_PROMPT": "1",
        "CURSOR_AGENT_FORCE": "true",
        "CURSOR_AGENT_PATH": "/home/you/.local/bin/cursor-agent",
        "CURSOR_AGENT_MODEL": "gpt-5",
        "CURSOR_AGENT_IDLE_EXIT_MS": "0",
        "CURSOR_AGENT_TIMEOUT_MS": "60000"
      }
    }
  }
}

{
  "mcpServers": {
    "cursor-agent": {
      "command": "node",
      "args": ["/abs/path/to/cursor-agent-mcp/server.js"],
      "env": {
        "CURSOR_AGENT_ECHO_PROMPT": "1",
        "CURSOR_AGENT_FORCE": "true",
        "CURSOR_AGENT_PATH": "/home/you/.local/bin/cursor-agent",
        "CURSOR_AGENT_MODEL": "gpt-5",
        "CURSOR_AGENT_IDLE_EXIT_MS": "0",
        "CURSOR_AGENT_TIMEOUT_MS": "60000",
        "DEBUG_CURSOR_MCP": "1"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
4.8K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
9.9K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
7.2K
4 points
M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
8.4K
5 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
13.1K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
13.1K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
8.7K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
10.0K
4 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.5K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.5K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.6K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
55.0K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
51.4K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.2K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
36.7K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase