Raysurfer Code Caching

MCP server for LLM output caching and reuse. Caches and retrieves code from prior AI agent executions, delivering cached outputs up to 30x faster.

Raysurfer Code Caching MCP Server

Website · Docs · Dashboard

MCP server that caches and reuses code from prior AI agent executions. Search before coding, upload after success.

No install required — runs via npx.

Setup

Get your API key from the dashboard.

Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "raysurfer": {
      "command": "npx",
      "args": ["-y", "raysurfer-code-caching-mcp"],
      "env": {
        "RAYSURFER_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Claude Code

claude mcp add raysurfer -e RAYSURFER_API_KEY=YOUR_API_KEY_HERE -- npx -y raysurfer-code-caching-mcp

VS Code

Add to your .vscode/mcp.json:

{
  "inputs": [
    {
      "password": true,
      "id": "raysurfer-api-key",
      "type": "promptString",
      "description": "Raysurfer API Key"
    }
  ],
  "servers": {
    "raysurfer": {
      "command": "npx",
      "args": ["-y", "raysurfer-code-caching-mcp"],
      "env": {
        "RAYSURFER_API_KEY": "${input:raysurfer-api-key}"
      }
    }
  }
}

Tools

ToolDescription
raysurfer_searchSearch for cached code matching a task (set public_snips: true to include community snippets)
raysurfer_uploadUpload code after successful execution
raysurfer_voteVote on cached code quality
raysurfer_patternsGet proven task-to-code patterns

Resources

  • raysurfer://help - Help text about available tools and workflow
  • raysurfer://status - Connection status and configuration

Development

bun install
bun run build
bun run dist/index.js

License

MIT

Related Servers