Get Started
Integrating the Pieces MCP with Raycast brings your workflow context directly into your macOS launcher. Raycast does not natively support HTTP-based MCP servers—you need an stdio-to-HTTP bridge (like mcp-remote) to connect to PiecesOS.
Prerequisites
There are three prerequisites for integrating Pieces with Raycast:
```bash
npm install -g mcp-remote@0.1.38
```
See [MCP Bridge](/products/mcp/mcp-remote) for why we recommend a locally installed binary over `npx`.
Installing PiecesOS & Configuring Permissions
Follow the instructions below for a detailed guide on setting up and configuring PiecesOS to correctly pass captured workflow context to the Pieces MCP server.
Setting Up Raycast
There are two ways to set up Pieces MCP for Raycast: use the Pieces CLI for automatic configuration, or configure manually with the mcp-remote bridge.
Method 1: CLI Install (Recommended)
The Pieces CLI can automatically configure Pieces MCP for Raycast—no manual config editing required.
```bash
pieces mcp setup
```
Method 2: Manual Configuration with mcp-remote Bridge
Raycast uses mcpServers in its config. All servers must use type: "stdio" because Raycast does not support HTTP natively.
Config File Location
Open Raycast, search for Manage MCP Servers, then press Cmd+K and select Show Config File in Finder to locate mcp-config.json.
Local Setup (same machine as PiecesOS)
Add to mcp-config.json:
{
"mcpServers": {
"pieces": {
"command": "mcp-remote",
"args": [
"http://localhost:39300/model_context_protocol/2024-11-05/sse"
]
}
}
}
Adding via Raycast UI
Using Pieces MCP in Raycast
After setup, use @pieces in Raycast AI (Quick AI, AI Chat, or Presets) to invoke Pieces tools. Raycast automatically shows AI all available servers.
Updating
Edit mcp-config.json (found via Show Config File in Finder), update the URL in args, and restart Raycast AI.
Troubleshooting
If you're experiencing issues integrating Pieces MCP with Raycast:
Verify PiecesOS Status: Ensure PiecesOS is actively running on your system.
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 the SSE endpoint responds:
curl http://localhost:39300/.well-known/versionConfig File Location: Use Raycast's Manage MCP Servers > Show Config File in Finder to locate the exact path.
You're now set to enhance your Raycast workflow with powerful context retrieval through Pieces MCP. Happy coding!