mcp.md

 1# Model Context Protocol
 2
 3Zed uses the [Model Context Protocol](https://modelcontextprotocol.io/) to interact with context servers.
 4
 5> The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
 6
 7Check out the [Anthropic news post](https://www.anthropic.com/news/model-context-protocol) and the [Zed blog post](https://zed.dev/blog/mcp) for an introduction to MCP.
 8
 9## MCP Servers as Extensions
10
11One of the ways you can use MCP servers in Zed is by exposing them as an extension.
12To learn how to do that, check out the [MCP Server Extensions](../extensions/mcp-extensions.md) page for more details.
13
14### Available extensions
15
16Many MCP servers have been exposed as extensions already, thanks to Zed's awesome community.
17Check which ones are already available in Zed's extension store via any of these routes:
18
191. [the Zed website](https://zed.dev/extensions?filter=context-servers)
202. in the app, run the `zed: extensions` action
213. in the app, go to the Agent Panel's top-right menu and look for the "View Server Extensions" menu item
22
23In any case, here are some of the ones available:
24
25- [Postgres](https://github.com/zed-extensions/postgres-context-server)
26- [GitHub](https://github.com/LoamStudios/zed-mcp-server-github)
27- [Puppeteer](https://github.com/zed-extensions/mcp-server-puppeteer)
28- [BrowserTools](https://github.com/mirageN1349/browser-tools-context-server)
29- [Brave Search](https://github.com/zed-extensions/mcp-server-brave-search)
30- [Prisma](https://github.com/aqrln/prisma-mcp-zed)
31- [Framelink Figma](https://github.com/LoamStudios/zed-mcp-server-figma)
32- [Linear](https://github.com/LoamStudios/zed-mcp-server-linear)
33- [Resend](https://github.com/danilo-leal/zed-resend-mcp-server)
34
35## Add your own MCP server
36
37Creating an extension is not the only way to use MCP servers in Zed.
38You can connect them by adding their commands directly to your `settings.json`, like so:
39
40```json
41{
42  "context_servers": {
43    "your-mcp-server": {
44      "source": "custom",
45      "command": "some-command",
46      "args": ["arg-1", "arg-2"],
47      "env": {}
48    }
49  }
50}
51```
52
53Alternatively, you can also add a custom server by accessing the Agent Panel's Settings view (also accessible via the `agent: open configuration` action).
54From there, you can add it through the modal that appears when clicking the "Add Custom Server" button.