/ Annuaire / Playground / ref-tools-mcp
● Communauté ref-tools ⚡ Instantané

ref-tools-mcp

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

ref-tools.replay ▶ prêt
0/0

Installer

Choisissez votre 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
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : ref-tools-mcp

How to stop the agent from hallucinating library APIs

👤 Coding agent users ⏱ ~10 min beginner

Quand l'utiliser : Agent confidently writes code that doesn't match the current library version.

Prérequis
  • Ref account + REF_API_KEY — Sign up at ref.tools (or whatever current Ref signup URL is)
Déroulement
  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.✓ Copié
    → Search hits with URLs; code cites them
  2. Verify
    ref_read_url on the top hit to confirm the API shape.✓ Copié
    → Clean markdown of the doc page

Résultat : Code that compiles against the actual library version.

Pièges
  • Search returns outdated docs for deprecated v-X — Include the version in the query: 'Prisma v5 raw SQL'
Combiner avec : github

How to search internal engineering docs / PDFs with an agent

👤 Platform teams with internal runbooks ⏱ ~15 min intermediate

Quand l'utiliser : Agent needs to follow company-specific patterns, not whatever StackOverflow says.

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

Résultat : Internal-standards-compliant output.

Pièges
  • 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

Quand l'utiliser : You want the article text without nav/ads/JS junk.

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

Résultat : Clean content, fast.

Combiner avec : markdownify

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

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.✓ Copié
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.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
Per Ref plan tier
Tokens par appel
Search hits: 500-2000 tokens. URL reads: can be 5k-20k
Monétaire
Ref is a paid service (free tier available); check current pricing
Astuce
Search first, then read only the top hit — chained reads are expensive.

Sécurité

Permissions, secrets, portée

Portées minimales : REF_API_KEY stored in env
Stockage des identifiants : REF_API_KEY env var
Sortie de données : Queries go to Ref's service; it in turn hits public web and your indexed private sources
Ne jamais accorder : Don't share your workspace key broadly; use per-user keys if Ref supports them

Dépannage

Erreurs courantes et correctifs

401 Unauthorized

Missing or invalid REF_API_KEY.

Vérifier : 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.

Alternatives

ref-tools-mcp vs autres

AlternativeQuand l'utiliserCompromis
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

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills