Integration Guide
Snipara works with any MCP-compatible client. This guide covers setup for the most popular clients including Claude Code, Cursor, Gemini CLI, Continue.dev, VS Code, and custom integrations.
NPX Setup Easy
One-command install
Claude Code
Anthropic CLI
Claude Code Plugin
Commands + Skills
Cursor
AI Code Editor
ChatGPT / OpenAI
Desktop + API
Gemini CLI
Google AI Agent
Continue.dev
Open Source
VS Code Extension
43 Commands + Copilot
Python SDK
pip install snipara
RLM Runtime
Code Execution + Agents
OpenClaw New
Multi-Agent Swarms
Before You Begin
Make sure you have created a project and generated an API key.
Find your Project ID (or slug) and API Key in your project's API Keys tab.
Project ID vs Slug
You can use either the Project ID (e.g., cm5xyz123...) or the human-readable slug (e.g., my-project) in your MCP URL. The slug is easier to remember and type.
Fastest Way: NPX Setup
One command installs Snipara MCP + RLM-Runtime and configures everything automatically.
npx create-sniparaPrompts for API key, detects your AI client, creates .mcp.json, and optionally configures execution environments (sandbox/docker/local).
Manual Installation Methods
Prefer manual configuration? Snipara offers two ways to connect your MCP client:
HTTP Direct (Recommended)
No installation required. Connect directly via URL.
- ✓ Works with Claude Code, Cursor, ChatGPT
- ✓ Zero setup on your machine
- ✓ Always up-to-date
stdio PackagePyPI
Install locally for Claude Desktop and universal support.
- ✓ Works with ALL MCP clients
- ✓ Required for Claude Desktop
- ✓
pip install snipara-mcp
pip install snipara-mcpor run without installing:uvx snipara-mcpClaude Code
Claude Code is Anthropic's official CLI for Claude. It supports HTTP transport for direct connection.
Option A: HTTP Direct (Recommended)
Use your project slug (e.g., my-project) or ID in the URL:
{ "mcpServers": { "snipara": { "type": "http", "url": "https://api.snipara.com/mcp/YOUR_PROJECT_SLUG", "headers": { "X-API-Key": "YOUR_API_KEY" } } }}Alternative: OAuth Token
You can also use an OAuth token instead of an API key:
"headers": { "Authorization": "Bearer snipara_at_YOUR_TOKEN" }Get a token by running snipara-mcp-login. Note: OAuth tokens expire after 1 hour and require refresh.
Option B: stdio Package
{ "mcpServers": { "snipara": { "command": "uvx", "args": ["snipara-mcp"], "env": { "SNIPARA_API_KEY": "YOUR_API_KEY", "SNIPARA_PROJECT_ID": "YOUR_PROJECT_SLUG" } } }}Security Note
Replace YOUR_PROJECT_SLUG and YOUR_API_KEY with your actual values from the Snipara dashboard.
Step 3: Verify Connection
Restart Claude Code and verify the connection:
claude-code --list-mcp-toolssnipara: rlm_context_query, rlm_ask, rlm_search, rlm_inject...Step 4: Start Querying
Claude will now automatically use Snipara to query your documentation when relevant. Try asking a question about your docs:
claude-codeHow does authentication work in this project?[Using snipara.rlm_context_query]Based on your documentation, authentication works by...Claude Desktop
Claude Desktop requires the stdio package since it doesn't support HTTP transport directly.
Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{ "mcpServers": { "snipara": { "command": "uvx", "args": ["snipara-mcp"], "env": { "SNIPARA_API_KEY": "YOUR_API_KEY", "SNIPARA_PROJECT_ID": "YOUR_PROJECT_SLUG" } } }}Requires Python
You need Python 3.10+ and uv installed. Install uv with: curl -LsSf https://astral.sh/uv/install.sh | sh
Cursor
Cursor supports both HTTP direct and stdio. HTTP is recommended.
Option A: HTTP Direct (v0.48.0+)
Add to ~/.cursor/mcp.json:
{ "mcpServers": { "snipara": { "transport": "sse", "url": "https://api.snipara.com/mcp/YOUR_PROJECT_SLUG", "headers": { "X-API-Key": "YOUR_API_KEY" } } }}Option B: stdio Package
{ "mcpServers": { "snipara": { "command": "uvx", "args": ["snipara-mcp"], "env": { "SNIPARA_API_KEY": "YOUR_API_KEY", "SNIPARA_PROJECT_ID": "YOUR_PROJECT_SLUG" } } }}Gemini CLI
Gemini CLI is Google's official open-source AI agent with native MCP support. It's free to use with generous rate limits.
Step 1: Install Gemini CLI
Install Gemini CLI globally:
npm install -g @google/gemini-cliStep 2: Configure MCP Server
Add Snipara to your Gemini settings. Open or create the configuration file:
code ~/.gemini/settings.jsonAdd the Snipara server configuration:
{ "mcpServers": { "snipara": { "transportType": "sse", "url": "https://api.snipara.com/mcp/YOUR_PROJECT_SLUG/sse", "headers": { "X-API-Key": "YOUR_API_KEY" } } }}Step 3: Verify Connection
List available MCP servers to verify the connection:
gemini mcp listsnipara: connected (7 tools available)Step 4: Start Querying
Gemini will now use Snipara tools when querying your documentation:
geminiHow does authentication work in this project?[Calling snipara.rlm_context_query]Based on your documentation, authentication works by...Free Tier
Gemini CLI offers 60 requests/minute and 1,000 requests/day on the free tier.
Custom Integration
Building your own MCP client? Here is the protocol specification for Snipara.
Connection
Snipara uses Server-Sent Events (SSE) for the MCP transport layer.
// Connect to MCP endpointconst eventSource = new EventSource( 'https://api.snipara.com/mcp/YOUR_PROJECT_SLUG/sse', { headers: { 'X-API-Key': 'YOUR_API_KEY' } });Tool Invocation
Invoke tools using HTTP POST:
const response = await fetch( 'https://api.snipara.com/mcp/YOUR_PROJECT_SLUG/tools/invoke', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-Key': 'YOUR_API_KEY' }, body: JSON.stringify({ name: 'rlm_context_query', arguments: { query: 'How does authentication work?', max_tokens: 4000 } }) });Available Endpoints
| Endpoint | Method | Description |
|---|---|---|
/mcp/:projectSlug/sse | GET | SSE connection for real-time updates |
/mcp/:projectSlug/tools | GET | List available tools |
/mcp/:projectSlug/tools/invoke | POST | Invoke a tool |
/mcp/:projectSlug/resources | GET | List available resources |
Environment Variables
For production deployments, we recommend storing your API key in environment variables:
.env.localSNIPARA_API_KEY=rlm_xxxxxxxxxxxxxxxxSNIPARA_PROJECT_ID=proj_abc123Then reference them in your configuration:
{ "mcpServers": { "snipara": { "url": "https://api.snipara.com/mcp/${SNIPARA_PROJECT_ID}", "headers": { "X-API-Key": "${SNIPARA_API_KEY}" } } }}Troubleshooting
- Check that your API key is valid and not expired
- Verify the project ID in the URL is correct
- Ensure your firewall allows outbound HTTPS connections
- Try the health check endpoint:
GET /mcp/:projectSlug/health
- Verify your API key is correct (check for extra spaces)
- Ensure the header format is
X-API-Key: YOUR_KEY - Check if the API key has expired in your dashboard
- Regenerate the API key if issues persist
- Restart your MCP client after configuration changes
- Check the client logs for connection errors
- Verify the MCP configuration file syntax is valid JSON
- Test the tools endpoint directly with curl
- Check if your documentation has been indexed (use rlm_stats)
- Try a simpler query to test connectivity
- Reduce the max_tokens parameter for faster responses
- Check the Snipara dashboard for query logs