Advanced MCP Configuration | Pieces Docs
Manual setup for apps that need a helper connection to PiecesOS. Step-by-step for Raycast, Zed, OpenClaw, and remote setups.
MCP Bridge
Some apps, including Raycast, Zed, and OpenClaw, need a small helper to talk to Pieces. This page covers that advanced, manual setup. Use it when your app is not available in one-click Connect.
Easiest Option: Pieces CLI
The Pieces CLI automatically configures MCP for supported platforms—no manual config editing required.
Manual Setup
Use manual setup when your client isn't supported by the CLI (e.g Zed and OpenClaw) or when you need to point at a remote PiecesOS URL (see Tunneling).
Prerequisites
<pos-download-guide />
```bash
npm install -g mcp-remote@0.1.38
```
<Callout type="alert">
Using `npx` to run `mcp-remote` downloads the package from npm each time. For better security, use a locally installed, version-pinned binary as shown above.
</Callout>
Pieces MCP Endpoints
PiecesOS exposes two endpoints. For mcp-remote, use the SSE endpoint—it works reliably across all stdio clients:
| Endpoint | URL | Use for |
|---|---|---|
| SSE | http://localhost:39300/model_context_protocol/2024-11-05/sse |
mcp-remote, stdio clients |
| Streamable HTTP | http://localhost:39300/model_context_protocol/2025-03-26/mcp |
Clients that support HTTP natively |
Configuring Your Client
```json
{
"mcpServers": {
"pieces": {
"command": "mcp-remote",
"args": [
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
]
}
}
}
```
See [Raycast integration](/products/mcp/raycast) for full setup.
```json
{
"context_servers": {
"pieces": {
"command": {
"path": "mcp-remote",
"args": [
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
],
"env": {}
},
"settings": {}
}
}
}
```
See [Zed integration](/products/mcp/zed) for full setup.
```json
{
"mcpServers": {
"pieces": {
"command": "mcp-remote",
"args": [
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
]
}
}
}
```
Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows). See [Claude Cowork](/products/mcp/claude-cowork) for full setup.
```json
{
"mcpServers": {
"pieces": {
"command": "mcp-remote",
"args": [
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
]
}
}
}
```
See [OpenClaw integration](/products/mcp/openclaw) for full setup.
For remote setups, use the ngrok URL instead of localhost. See Tunneling.
Useful Flags
| Flag | Purpose |
|---|---|
--allow-http |
Allow HTTP URLs; use only in trusted private networks |
--debug |
Write verbose logs to ~/.mcp-auth/{hash}_debug.log |
--silent |
Suppress default logs |
Tips & Troubleshooting
Ensure PiecesOS is running. Test the endpoint: curl http://localhost:39300/.well-known/version. Restart your MCP client after changing config, then ask: "What tools do you have from Pieces?" or "What did I work on yesterday?"
Troubleshooting
mcp-remote: command not found — Run
npm install -g mcp-remote@0.1.38and ensure the global npm bin directory is in your PATH.Bridge not connecting — Verify PiecesOS is running and the port is correct. Test with
curl http://localhost:39300/.well-known/version.Wrong config key — Zed uses
context_servers; Raycast, Claude Cowork, and OpenClaw usemcpServers.Port mismatch — Check the PiecesOS Quick Menu or Settings → Model Context Protocol (MCP) for the current endpoint.
Stale credentials — If you have persistent issues, try
rm -rf ~/.mcp-authand restart the client.
Next Steps
- Raycast — macOS launcher with Pieces LTM
- Zed — Zed editor with Pieces LTM
- Claude Cowork — Claude Cowork with Pieces LTM
- OpenClaw — OpenClaw with Pieces LTM
- Tunneling — Expose PiecesOS for remote MCP access