{"repo":"ref-tools/ref-tools-mcp","free":true,"listed":false,"github":"https://github.com/ref-tools/ref-tools-mcp","clone":"git clone https://github.com/ref-tools/ref-tools-mcp.git","description":"Helping coding agents never make mistakes working with public or private libraries without wasting the context window.","language":"TypeScript","stars":1153,"topics":["coding-agent","documentation-tool","mcp","mcp-server"],"license":"MIT","category":"mcp-servers","readme_excerpt":"Ref MCP 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 Agentic search for exactly the right context Ref's tools are designed to match how models search while using as little context as possible to reduce context rot. The goal is to find exactly the context your coding agent needs to be successful while using minimum tokens. Depending on the complexity of the prompt, LLM coding agents like Claude Code will typically do one or more searches and then choose a few resources to read in more depth. For a simple query about Figma's Comment REST API it will make a couple calls to get exactly what it needs: For more complex situations, the LLM will try to refine it's prompt as it reads results. For example: Ref takes advantage of MCP sessions to track search trajectory and minimize context usage. There's a lot more ideas cooking but here's what we've implemented so far. 1. Filtering search results For repeated similar searches in a session, Ref will never return repeated results. Traditionally, you dig farther in to search results by paging to the next result but this approach allows the agent to page AND adjust the prompt at the same time. 2. Fetching the part of the page that matters When reading a page of documentation, Ref will use the agent's session search history to","default_branch":null,"files":null,"tree":[],"storefront":"/r/ref-tools","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ref-tools/ref-tools-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}