ref-tools-mcp
Ref MCP is a Model Context Protocol server that gives a coding agent access to documentation for APIs, services and libraries. The README's pitch is token efficiency: models get worse as context grows and tokens cost money, so Ref tries to find exactly the context the agent needs. It exposes two tools. `ref_search_documentation` searches public documentation on the web and GitHub, and can also search private resources such as repos and PDFs; its query should be a full sentence or question. `ref_read_url` fetches a page and converts it to markdown.
The README says it uses MCP sessions to track the search trajectory. Repeated similar searches in a session do not return the same results again, and when reading a page it uses the session's search history to drop less relevant sections and return the most relevant ~5k tokens instead of pulling in 20k+ tokens of a large docs page. Its examples show an agent making a short search followed by one read, with token counts for each step.