Model Context Protocol (MCP) Integration¶
Ragdoll natively supports the Model Context Protocol (MCP), allowing you to expose your local vector database as a set of dynamic tools for external AI clients like Claude Desktop, VS Code, and Copilot.
When running as an MCP server, Ragdoll provides a search_ragdoll tool that external LLMs can use to search for context from your ingested Jira tickets, Bitbucket PRs, Git commits, Code, and PDFs.
Warning
Privacy & Data Exfiltration Notice for Cloud-Hosted MCP Clients:
While the Ragdoll MCP server executes locally on your machine, connecting it to cloud-hosted AI assistants (such as Anthropic Claude Desktop, Claude Code CLI, or cloud-backed VS Code Copilot) means that any context retrieved by Ragdoll—internal source code, Jira ticket discussions, Bitbucket PR reviews, and PDF documentation—is transmitted over the internet to the third-party AI provider’s API servers as tool call results.
For proprietary or sensitive internal data: Ensure your organization has an enterprise agreement with the cloud provider guaranteeing confidentiality and zero training retention, OR use Ragdoll’s native terminal chat (
pixi run ragdoll chat) which runs 100% offline using local Ollama models.
There are two ways to run the Ragdoll MCP Server depending on your needs.
1. Local Transport (stdio)¶
If your AI client is running on the same machine as Ragdoll, the standard way to connect is using the stdio transport. The client will spawn the Ragdoll process in the background.
To test if the MCP server works locally, you can run:
pixi run ragdoll mcp
(Note: Running this manually will appear to hang, as it waits for JSON-RPC messages on standard input).
Connecting to Claude Code (CLI)¶
If you use Anthropic’s official claude CLI in your terminal, you can easily attach Ragdoll by running:
claude mcp add ragdoll -- /path/to/ragdoll/.pixi/envs/default/bin/ragdoll mcp
Connecting to Claude Desktop¶
To add Ragdoll to the official Claude Desktop app, edit your configuration file (usually located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"ragdoll": {
"command": "/path/to/ragdoll/.pixi/envs/default/bin/ragdoll",
"args": ["mcp"]
}
}
}
Connecting to VS Code¶
If you are using an MCP-compatible extension in VS Code:
Locate the MCP Server configuration settings for your extension.
Add Ragdoll to the
mcpServersobject in your configuration:
{
"mcpServers": {
"ragdoll": {
"command": "/path/to/ragdoll/.pixi/envs/default/bin/ragdoll",
"args": ["mcp"]
}
}
}
2. Network Transport (SSE)¶
If your AI client is on a different machine, or if you prefer a REST-like API, you can run the MCP server over HTTP using Server-Sent Events (SSE).
To start the server in SSE mode, run:
pixi run ragdoll mcp --transport sse --port 8080
This starts a web server listening on port 8080. External MCP clients can now connect to this server by pointing to the SSE endpoint: http://<your-ip>:8080/sse.
Connecting via SSE to IDEs and Custom Clients¶
If your IDE or AI client supports SSE via a standard mcp_config.json, you can connect by replacing the command/args array with a url:
{
"mcpServers": {
"ragdoll": {
"url": "http://127.0.0.1:8080/sse"
}
}
}
(Note: Ensure your network allows connections to the specified port if accessing from a different machine).
Using the MCP Tool¶
Once your AI client is connected to Ragdoll, you don’t need to learn any specific syntax. You can simply chat with your AI and ask natural language questions:
“Search Ragdoll for the latest Jira tickets related to the authentication service bugs.”
The AI will recognize the search_ragdoll tool, send the query, and use the results returned from your local ChromaDB to answer your question.