MCPs
Cursor
Intermediate
Configure an MCP Server in Cursor
Set up and use MCP servers in your Cursor workspace
32 of 66
MCP in Cursor
Cursor connects to MCP servers that provide tools and resources to the AI agent.
Setup
1. Configure in Cursor settings
Add servers to .cursor/mcp.json in your project root or globally via Cursor Settings > MCP:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest"]
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
}
}
}
2. Verify
After saving, Cursor restarts the servers automatically. The agent can now discover and call tools from configured servers.
Useful MCP servers
| Server | Install | Purpose |
|---|---|---|
| Playwright | @playwright/mcp@latest | Browser automation and testing |
| Context7 | @upstash/context7-mcp@latest | Live library docs lookup |
| GitHub | @modelcontextprotocol/server-github | Issues, PRs, repo access |
Troubleshooting
- Server won't start: check that
npxcan resolve the package - Tool call fails: read the tool schema first to get correct parameters
- Missing tools: restart Cursor after editing mcp.json