Agents & Workflows
How to Set Up MCP in Cursor
MCP (Model Context Protocol) lets Cursor's agent call external tools and pull in context from outside your repo, such as Jira, Postgres or your docs. Install a server with one click from the Cursor Marketplace, or add it in .cursor/mcp.json with a command or URL. Most setup problems are a bad command or path, or too many enabled tools.

On this page
What is MCP in Cursor?
MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. is an open standard for connecting AI agents to external tools and data sources. In Cursor, an MCP server exposes tools that the agent can call in the middle of a task, such as querying a database, reading a ticket or calling an API. With them, the agent can work with more than your codebase.
A Cursor growth engineer describes MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. servers as a great way to connect Cursor to internal knowledge bases, and sorts them into two buckets. Personal servers are tools only you use, such as Figma or a meeting-notes service like Granola. Team servers are the shared systems your organization reads from: a data warehouse such as Databricks, an experiment platform such as Statsig, or your backend services. Once a server is connected, you can steer a confused agent mid-run by naming it: "use the Databricks MCP."
One Cursor growth engineer keeps her personal MCPs pointed at Figma and her notes tool, and her team MCPs pointed at the company database, the experiment platform, and the backend services.
MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. servers are a great way to actually connect Cursor to your internal knowledge bases.
The two buckets leave out a cost on the agent's side. Every enabled tool is one more option the model weighs on each turn. Cursor's docs suggest switching off the servers you don't need to cut that clutter. Keep the personal bucket small, and switch team servers on for the work that uses them instead of leaving all of them on.
This is covered hands-on in Agent Mode Foundations — 6 short Units, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How do I add an MCP server to Cursor?
Point Cursor at the server, give it any keys it needs, and confirm its tools show up. A local server gets a command to launch, and a hosted one gets a URL.
- 1For a one-click install from the Cursor Marketplace, open Customize in the sidebar, choose MCPs and click Add to Cursor on the server. For anything else, create a
.cursor/mcp.jsonin your project. - 2For a manual entry, add a command (stdio, for example
npx -y some-mcp-server) or a remote URL (streamable HTTP or SSE). - 3Provide any required environment variables or API keys. Marketplace remote servers can authenticate with OAuth instead.
- 4If you edited the config file, save it and restart Cursor. Then check that the server's tools appear in the tools list at the top of the chat panel.
- 5Ask the agent to use a tool. By default, Cursor asks for your approval first. MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. tools follow the same run mode as terminal commands, so an allowlisted tool can run without asking.
{
"mcpServers": {
"example": {
"command": "npx",
"args": ["-y", "@example/mcp-server"],
"env": { "API_KEY": "..." }
}
}
}Decide which file the entry belongs in before you write it. A global ~/.cursor/mcp.json follows you into every project, and the project file wins when both define the same server name. So a global entry can sit there shadowed while you edit it and wonder why nothing changes.
The project file also lives inside the repository. An API key pasted into env is one commit away from going out with every clone. Write ${env:API_KEY} in place of the key, and Cursor reads the value from your environment. Marketplace remote servers authenticate over OAuth, which keeps the key out of the file.
Which MCP servers are worth connecting?
The servers worth connecting are the systems your team already works in. The table lists common ones and what the agent can do with each.
Name the MCP servers before you approve another
0:20 · narratedRead this demo as text
- Tools and MCPs is where connected servers live. Mobbin, PostHog, Railway — each row is a real capability boundary. Name the tool you need before you approve another server.
Practice next: Practice this yourself in the hands-on module.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.
- MCP
- Linear
- What the agent can do
- Read tickets, comment, and create tickets and projects, so Cursor works as a Linear front end.
- MCP
- Datadog
- What the agent can do
- Sift logs, compare timestamps, and check findings against the code to investigate a production issue.
- MCP
- Slack
- What the agent can do
- Fetch context from a thread and post messages back.
- MCP
- Notion
- What the agent can do
- Query an internal knowledge base.
- MCP
- Figma
- What the agent can do
- Read a design system's tokens and publish components back out (see the round-trip below).
- MCP
- Jira / Confluence
- What the agent can do
- Query those knowledge bases from Ask modeA read-only mode for asking questions about a codebase without changing files; the safe way to explore unfamiliar or legacy code. Press Enter for the full definition..
| MCP | What the agent can do |
|---|---|
| Linear | Read tickets, comment, and create tickets and projects, so Cursor works as a Linear front end. |
| Datadog | Sift logs, compare timestamps, and check findings against the code to investigate a production issue. |
| Slack | Fetch context from a thread and post messages back. |
| Notion | Query an internal knowledge base. |
| Figma | Read a design system's tokens and publish components back out (see the round-trip below). |
| Jira / Confluence | Query those knowledge bases from Ask modeA read-only mode for asking questions about a codebase without changing files; the safe way to explore unfamiliar or legacy code. Press Enter for the full definition.. |
Each of these has an official plugin in the Cursor Marketplace, and one plugin covers both Jira and Confluence. None are built into the editor itself.
Point the agent at a project and let it triage one ticket at a time. For each ticket it pulls the ticket context, jumps to the code, checks git history for relevant commits, decides whether the problem still exists, updates the comments, and surfaces open questions back to you. Hours of manual triage, run as one task.
You can actually just have Cursor agent go one by one and determine: has the problem in this ticket actually been solved.
Datadog has a Cursor / VS Code extension that also installs its MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition.. Once it's plugged in, hand the agent a user ID or a wrong-data symptom and it sifts logs, compares timestamps, and returns an analysis that's often more thorough than you'd do by hand. It's also a far more ergonomic interface than the Datadog UI.
I use the Datadog MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. extremely heavily.
Click Add to Cursor on a Marketplace listing and the server installs without hand-written config, and remote servers authenticate with OAuth instead of pasted API keys. Team admins can distribute a curated set through a team marketplace.
To see what exists, browse the Cursor Marketplace for official plugins first, then cursor.directory for community servers. Between them, they show whether a given tool, such as Excalidraw or Lucidchart, has a server yet.
How does the Figma round-trip work?
The Figma MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. works in both directions, which is why designers reach for it. Inbound, you paste a Figma file link into the prompt with a request such as "use the design system at this link to inform the design of my dashboard." Cursor reads the tokens, typography, colors and variable definitions, takes screenshots, and applies them to your live code.
Outbound, you select a rendered component in Design ModeA way to point at an element in Cursor's built-in browser and change it directly, instead of describing it in words. Press Enter for the full definition., press ⌘L to send it to chat, and say "publish this component back to Figma" with the target file link. Cursor recreates the component there with the same colors, fonts and width, split into proper layers. The published layers show up in purple.
Interactive diagram. Step through it with the Next and Previous controls below, or Tab to a region to read its detail.
Bring the design system into Cursor, prototype, then publish components back to a shareable Figma file.
I'm able to get context from Figma into Cursor, and then I'm able to get anything that I prototype or I build in Cursor back to Figma. And so, it's this beautiful dance.
Why does my MCP server show 'no tools found'?
Almost always, it means the server never started. The usual causes are a bad command or path, a missing API key, or a mismatch between stdio and remote. Run the exact command in a terminal and watch it start before you blame Cursor.
- The command or path is wrong, or the package isn't installed. Test the command in a terminal first.
- Environment variables or API keys are missing, so the server fails to start.
- A remote server was given a command. Remote servers need a URL.
- If the tools load but the agent keeps picking the wrong ones, too many may be enabled across servers. Trim the list to what you need.
- Still stuck? Open the Output panel (⌘Ctrl⇧U) and choose MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. Logs. The server's startup errors land there.
Start with the terminal test, because it splits the problem in two. If the command fails in a terminal, the fault is in the command, the package or the keys, and Cursor's config is not involved. If it starts in a terminal but not in Cursor, compare the command and environment variables in your config with what you ran.
Frequently asked questions
What's the difference between stdio and remote MCP servers?
A stdio server runs locally as a command that Cursor launches. A remote server is hosted, and you connect to it with a URL over streamable HTTP or SSE. Use stdio for local tools and remote for shared or hosted ones.
Why isn't my MCP server connecting in Cursor?
Most often the start command fails because of a wrong path, a missing dependency or a missing API key. Run the exact command in a terminal to confirm it starts, then check the environment variables in your MCP config.
Can I limit which MCP tools the agent uses?
Yes. Enable only the servers and tools you need, and switch individual tools off from the tools list at the top of the chat panel. A short list of relevant tools gives more reliable agent behavior than a long, noisy one.
Should I put MCP API keys in .cursor/mcp.json?
Not as plain text. The project file lives in your repository, so a key pasted into its env block is one commit away from going out with every clone. Write ${env:API_KEY} in place of the key so Cursor reads the value from your environment, or use a Marketplace remote server that authenticates with OAuth.
Sources & last verified
- Cursor Docs - MCP
- Cursor Marketplace
- Model Context Protocol
- Cursor Help - MCP integrations
- Cursor Docs - Plugins and team marketplaces
Cursor ships frequently. Last updated October 28, 2026.