/ Verzeichnis / Playground / ref-tools-mcp
● Community ref-tools ⚡ Sofort

ref-tools-mcp

von ref-tools · ref-tools/ref-tools-mcp

Help coding agents find the right docs fast — public libs, private repos, internal PDFs — without burning context on wrong pages.

ref-tools/ref-tools-mcp (by Ref) provides two tools: a focused documentation search across public web, GitHub repos, and your private resources, plus a markdown-returning URL reader. Requires a REF_API_KEY.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

ref-tools.replay ▶ bereit
0/0

Installieren

Wählen Sie Ihren Client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "ref-tools": {
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "_inferred": true
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "ref-tools": {
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "_inferred": true
    }
  }
}

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "ref-tools": {
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "_inferred": true
    }
  }
}

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ref-tools": {
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "_inferred": true
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "ref-tools",
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ]
    }
  ]
}

Continue nutzt ein Array von Serverobjekten statt einer Map.

~/.config/zed/settings.json
{
  "context_servers": {
    "ref-tools": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "ref-tools-mcp"
        ]
      }
    }
  }
}

In context_servers hinzufügen. Zed lädt beim Speichern neu.

claude mcp add ref-tools -- npx -y ref-tools-mcp

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: ref-tools-mcp

How to stop the agent from hallucinating library APIs

👤 Coding agent users ⏱ ~10 min beginner

Wann einsetzen: Agent confidently writes code that doesn't match the current library version.

Voraussetzungen
  • Ref account + REF_API_KEY — Sign up at ref.tools (or whatever current Ref signup URL is)
Ablauf
  1. Ask a question grounded in docs
    Use ref_search_documentation to find how to use Prisma raw SQL queries in v5, then write an example.✓ Kopiert
    → Search hits with URLs; code cites them
  2. Verify
    ref_read_url on the top hit to confirm the API shape.✓ Kopiert
    → Clean markdown of the doc page

Ergebnis: Code that compiles against the actual library version.

Fallstricke
  • Search returns outdated docs for deprecated v-X — Include the version in the query: 'Prisma v5 raw SQL'
Kombinieren mit: github

How to search internal engineering docs / PDFs with an agent

👤 Platform teams with internal runbooks ⏱ ~15 min intermediate

Wann einsetzen: Agent needs to follow company-specific patterns, not whatever StackOverflow says.

Voraussetzungen
  • Ref private sources indexed — Upload repos/PDFs to your Ref workspace (see Ref docs)
Ablauf
  1. Scope search to private
    ref_search_documentation 'internal auth pattern' with private sources only.✓ Kopiert
    → Internal results only
  2. Read the runbook
    ref_read_url on the top internal result.✓ Kopiert
    → Clean text of the runbook

Ergebnis: Internal-standards-compliant output.

Fallstricke
  • Internal docs go stale — agent still cites them — Tell the agent to check 'last updated' metadata and flag old content

How to fetch arbitrary URLs as clean markdown

👤 Anyone doing research + summarization ⏱ ~5 min beginner

Wann einsetzen: You want the article text without nav/ads/JS junk.

Ablauf
  1. Read the URL
    ref_read_url https://some-blog.com/post — give me clean markdown.✓ Kopiert
    → Body text as markdown
  2. Summarize
    Now give me a 5-bullet summary.✓ Kopiert
    → Summary

Ergebnis: Clean content, fast.

Kombinieren mit: markdownify

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

ref-tools + github

Ground a PR review with official docs citations

For the Prisma migration in PR #1234, use ref_search_documentation to verify each API matches v5 docs, then comment on the PR.✓ Kopiert
ref-tools + markdownify

Combine Ref's doc search with markdownify for local PDFs not in Ref

Search Ref for our internal auth guidance, then markdownify the additional /specs/auth-v3.pdf that isn't indexed yet.✓ Kopiert

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
ref_search_documentation query: str, sources?: str[] Ground a library or internal-doc question 1 Ref API call
ref_read_url url: str Pull a page as clean markdown 1 Ref API call

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
Per Ref plan tier
Tokens pro Aufruf
Search hits: 500-2000 tokens. URL reads: can be 5k-20k
Kosten in €
Ref is a paid service (free tier available); check current pricing
Tipp
Search first, then read only the top hit — chained reads are expensive.

Sicherheit

Rechte, Secrets, Reichweite

Minimale Scopes: REF_API_KEY stored in env
Credential-Speicherung: REF_API_KEY env var
Datenabfluss: Queries go to Ref's service; it in turn hits public web and your indexed private sources
Niemals gewähren: Don't share your workspace key broadly; use per-user keys if Ref supports them

Fehlerbehebung

Häufige Fehler und Lösungen

401 Unauthorized

Missing or invalid REF_API_KEY.

Prüfen: echo $REF_API_KEY
Search returns stale results

Private-source re-index may be delayed; force re-index from Ref dashboard.

ref_read_url returns empty

Some sites block scraping. Use webpage-to-markdown via markdownify as a fallback.

Quota exceeded

Upgrade Ref plan or space out search usage.

Alternativen

ref-tools-mcp vs. andere

AlternativeWann stattdessenKompromiss
Context7 MCPYou want free public-library docs retrievalNo private source indexing
Apple Docs MCP / pg-aiguideYou only care about a specific platform's docsScoped; not general-purpose

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen