Tool type: Code editor (desktop) Website: zed.dev Transport support: stdio only
HTTP not yet supported natively. Zed uses a custom
context_serverskey and currently does not support remote HTTP/SSE MCP servers. A stdio-to-HTTP bridge is required to connect to PiecesOS. See the mcp-remote guide for full documentation.
| Scope | Path |
|---|---|
| User settings | ~/.config/zed/settings.json (Linux/macOS) or $XDG_CONFIG_HOME/zed/settings.json |
| Project settings | .zed/settings.json in your project root |
Key name: Zed uses
context_servers(notmcpServersorservers).
A stdio-to-HTTP bridge is required because Zed does not support HTTP MCP servers natively. See the mcp-remote guide for full documentation, or the stdio-to-HTTP Bridges section for a quick comparison of bridge options.
See the mcp-remote guide for full installation options, CLI flags, and OAuth documentation.
npm install -g mcp-remote
# or use directly via npx (no global install needed)Recommended when PiecesOS and Zed are on the same machine. Use the localhost SSE URL.
Add to ~/.config/zed/settings.json:
{
"context_servers": {
"pieces": {
"command": {
"path": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
],
"env": {}
},
"settings": {}
}
}
}Use this when Zed is running on a different machine from PiecesOS. For ngrok setup, see: Connecting to PiecesOS from the Outside World via Ngrok.
{
"context_servers": {
"pieces": {
"command": {
"path": "npx",
"args": [
"-y",
"mcp-remote",
"https://YOUR_NGROK_URL.ngrok.app/model_context_protocol/2024-11-05/sse"
],
"env": {}
},
"settings": {}
}
}
}{
"context_servers": {
"pieces": {
"command": {
"path": "npx",
"args": [
"-y",
"supergateway",
"--sse",
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
],
"env": {}
},
"settings": {}
}
}
}Edit your settings.json, update the URL in the args array, and save. Zed reloads context servers on config change.
- Open Zed's AI assistant panel
- Ask: "What context tools do you have?"
- Pieces LTM tools should be available
| Issue | Solution |
|---|---|
npx: command not found |
Install Node.js; ensure npx is in your PATH |
| Wrong config key | Use context_servers (not mcpServers or servers) |
| Bridge process crashes | Check that PiecesOS is running and the SSE endpoint responds |
| No tools visible | Restart Zed; working directory must allow finding npx |
| HTTP support | Track progress at github.com/zed-industries/zed/discussions/29370 |
- Pieces MCP and LTM Tools Reference — Complete reference for all 39 tools available to your agents
- Connecting to PiecesOS via Ngrok — Expose your local Pieces server for remote access
- Bridging Local MCP Clients with mcp-remote — Connect stdio-only clients to the Pieces HTTP endpoint
| ← Back to All Agent Setup Guides |