Up-to-date documentation for your coding agent. Covers 1000s of public repos and sites. Built by ref.tools
A ModelContextProtocol server that gives your AI coding tool or agent access to documentation for APIs, services, libraries etc. It's your one-stop-shop to keep your agent up-to-date on documentation in a fast and token-efficient way.
For more see info ref.tools
There are two options for setting up Ref as an MCP server, either via the streamable-http server (experimental) or local stdio server.
This repo contains the legacy stdio server.
"Ref": {
"command": "npx",
"args": [
"-y",
"mcp-remote@0.1.0-0",
"https://api.ref.tools/mcp",
"--header=x-ref-api-key:<sign up to get an api key>"
]
}
}
"Ref": {
"command": "npx",
"args": ["ref-tools-mcp"],
"env": {
"REF_API_KEY": <sign up to get an api key>
}
}
As of April 2025, MCP supports streamable HTTP servers. Ref implements this but not all clients support it yet so the most reliable approach is to use mcp-remote
as a local proxy. If you know your client supports streamable HTTP servers, feel free to use https://api.ref.tools/mcp directly.
Note for former alpha users: REF_ALPHA
config is still supported. You'll be notified if you need to update.
Ref MCP server provides all the documentation related tools for your agent needs.
A powerful search tool to check technical documentation. Great for finding facts or code snippets. Can be used to search for public documentation on the web or github as well from private resources like repos and pdfs.
Parameters:
query
(required): Query to search for relevant documentation. This should be a full sentence or question.keyWords
(optional): A list of keywords to use for the search like you would use for grep.source
(optional): Defaults to 'all'. 'public' is used when the user is asking about a public API or library. 'private' is used when the user is asking about their own private repo or pdfs. 'web' is use only as a fallback when 'public' has failed.Note: When source
is set to 'web', this tool will perform web search to find relevant information online.
A tool that fetches content from a URL and converts it to markdown for easy reading with Ref. This is powerful when used in conjunction with the ref_search_documentation tool that returns urls of relevant content.
Parameters:
url
(required): The URL of the webpage to read.npm install
npm run dev
For development and debugging purposes, you can use the MCP Inspector tool. The Inspector provides a visual interface for testing and monitoring MCP server interactions.
Visit the Inspector documentation for detailed setup instructions.
To test locally with Inspector:
npm run inspect
Or run both the watcher and inspector:
npm run dev
npm install
npm run build
npm run watch
MIT
An MCP server for managing the software development lifecycle, with support for an optional external SQLite database.
Migrate JavaScript files to TypeScript with customizable conversion rules.
Run Postman collections using Newman, with support for environment and global variables.
Provides structured data for shadcn/ui components, including descriptions, installation instructions, usage examples, and props.
A collection of reference implementations for the Model Context Protocol (MCP), showcasing various MCP servers implemented with TypeScript and Python SDKs.
Integrates Zeek network analysis with conversational AI clients. Requires an external Zeek installation.
Image generation and editing using the FLUX.1 Kontext [Max] model via the Replicate API, featuring advanced text rendering and contextual understanding.
A server for managing sequential development tasks with configurable rules using external .mdc files.
Query the BuiltWith API to discover the technology stacks of websites. Requires a BuiltWith API key.
Search dashboards, investigate incidents and query datasources in your Grafana instance