ref_read_url
Read the content of a url as markdown. The EXACT url from a 'ref_search_documentation' result should be passed to this tool.
Search documentation across the web, GitHub and your own repos and PDFs, then read the page that matched.
LABSCO SUMMARY
What it takes off you is knowing where the answer lives: the same query runs over public documentation, GitHub and the private repositories and PDFs you have connected, and whichever result matched is read back as Markdown in the next call.
A two-call documentation lookup: a search that returns URLs, and a reader that turns a URL into Markdown. Private sources — repositories and PDFs — are searched alongside public ones.
For local stdio, have npx on your PATH and set REF_API_KEY to your Ref API key. The hosted endpoint needs no local npx; authenticate with your Ref API key or OAuth sign-in.
One command plus a key — npx -y ref-tools-mcp, then supply credentials
USE CASES
Internal repositories and PDFs are searched in the same pass as the public web, so a convention that only exists in your own documentation still comes back.
Search results give you the page; the second call gives you what is on it, as Markdown the model can quote from.
Search the library's documentation by name and read the page, instead of writing from what the model remembers of an earlier version.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
ref_read_urlRead the content of a url as markdown. The EXACT url from a 'ref_search_documentation' result should be passed to this tool.
ref_search_documentationSearch for documentation on the web or github as well from private resources like repos and pdfs. Use Ref 'ref_read_url' to read the content of a url.
BEFORE YOU INSTALL
2 tools when we connected. Under an OpenAI client the two tools are renamed search and fetch. This repository is the legacy stdio server; the project recommends its hosted streamable-HTTP endpoint instead.
Of the 2 documented setups, 1 runs the server on your machine and 1 connects to a hosted endpoint.
CONTEXT COST
Rated by the size of the 2 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y ref-tools-mcphttps://api.ref.tools/mcp?apiKey=<YOUR_API_KEY>Use your Ref API key from ref.tools/keys as <YOUR_API_KEY> in the endpoint URL’s apiKey parameter.
{
"mcpServers": {
"Ref": {
"type": "http",
"url": "https://api.ref.tools/mcp?apiKey=<YOUR_API_KEY>"
}
}
}{
"mcpServers": {
"Ref": {
"command": "npx",
"args": [
"ref-tools-mcp@latest"
],
"env": {
"REF_API_KEY": "<YOUR_REF_API_KEY>"
}
}
}
}