
Ref Tools Ref Tools Mcp
ai.smithery由 smithery.ai 发布官方发布者v3.0.0更新于 Oct 24, 2026
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
发布方自己的服务:222wcnm Bilistalkermcp
概览
Ref 让 AI 编程助手以节省 token 的方式搜索并阅读 API、库和服务的最新技术文档。
- 可以做什么
- 用完整句子查询技术文档,覆盖公开网页与 GitHub 文档,以及私有仓库和 PDF
- 读取文档 URL 并转换为 markdown,只保留与本次会话搜索最相关的段落
- 利用 MCP 会话历史,重复搜索不再返回已见结果,长页面被裁剪到约 5k 最相关 token
- 在配合 OpenAI 深度研究客户端使用时,以另一套工具名提供相同能力
- 适用场景
- 适合编程助手需要最新、准确的 API 或库文档,同时希望控制上下文体积与成本的场景。也适合会多次搜索并针对性阅读的迭代式代理。
- 运行要求
- 需要远程 MCP 端点(streamable HTTP),或通过 npx 运行旧版本地 stdio 包。必须认证:托管端点使用 Authorization 头中的 OAuth bearer token,stdio 版本使用注册获取的 Ref API key,通过 REF_API_KEY 传入。需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Ref Tools Ref Tools Mcp,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/ai.smithery%2Fref-tools-ref-tools-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"ref-tools-ref-tools": {
"type": "http",
"url": "https://server.smithery.ai/@ref-tools/ref-tools-mcp/mcp"
}
}
}README
[Documentation for your agent] [smithery badge] [Website] [License] [npm version]
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 dropout less relevant sections and return the most relevant 5k tokens. This helps Ref avoid a big problem with standard fetch() web scraping which is when it hits a large documentation page you can easily end up pull in 20k+ tokens into context, most of which are irrelevant.
Why does minimizing tokens from documentation context matter?
1. More context makes models dumber
It's well documented that as of July 2025 that models get dumber as you put in more tokens. You might have heard about how models are great with long context now and that's kind of true but not the whole picture. For a quick primer on some research, checkout this video from the team at Chroma.
2. Tokens cost $$$
Imagine you are using Claude Opus as a background agent and you start by having the agent pull in documentation context and suppose it pulls in 10000 tokens of context with 4000 being relevant and 6000 being extra noise. At API pricing, that 6k tokens cost about $0.09 PER STEP. If one prompt ends up taking 11 steps with Opus, you've spent $1 for no reason.
Setup
There are two options for setting up Ref as an MCP server, either via the streamable-http server (recommended) or local stdio server (legacy).
This repo contains the legacy stdio server.
Streamable HTTP (recommended)
stdio
[Install Ref MCP in Cursor (stdio)]
Tools
Ref MCP server provides all the documentation related tools for your agent needs.
ref_search_documentation
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.
ref_read_url
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.
OpenAI deep research support
Ref can be used as a source for deep research. OpenAI requires specific tool definitions so when used with an OpenAI client, Ref will provide the same tools with slightly different naming.
Development
Running with Inspector
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:
Or run both the watcher and inspector:
Local Development
- Clone the repository
- Install dependencies:
- Build the project:
- For development with auto-rebuilding:
License
MIT
来源:README.md,提交 f5feb82
工具
0版本历史
1- v3.0.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Smithery 集成

222wcnm Bilistalkermcp
ai.smithery官方发布者
Bilibili 创作者分析服务器,让助手查询指定用户的资料、视频、动态、专栏、字幕、关注列表和评论。

Zwldarren Akshare One Mcp
ai.smithery官方发布者
远程 MCP 服务器,让助手以只读方式获取中国股市数据:历史与实时行情、新闻和财务报表。

Zhaoganghao Hellomcp
ai.smithery官方发布者
一个小型远程 MCP 服务器,让助手按名字向人问候,并介绍“Hello, World”的由来。

Zeta Chain Cli
ai.smithery官方发布者
一个远程 MCP 服务器,让助手为任意姓名或受众生成友好、可定制的问候语。

Yuna0x0 Hackmd Mcp
ai.smithery官方发布者
一个连接 HackMD API 的 MCP 服务器,让助手读取、创建、更新和删除 HackMD 笔记并管理团队。