Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search and read Rust documentation for the standard library and any crate on crates.io
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://ferritin.rs/mcp在终端中运行这条命令
claude mcp add --transport http rustdoc https://ferritin.rs/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"rustdoc": {
"url": "https://ferritin.rs/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"rustdoc": {
"type": "http",
"url": "https://ferritin.rs/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://ferritin.rs/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过域名 ferritin.rs 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(2026.7.21)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
[][ci]
[][crate]
A terminal-based Rust documentation viewer
Ferritin reads rustdoc JSON output to display Rust documentation directly in your terminal. It supports local workspace crates, standard library documentation, and crates from crates.io, with search functionality and modern terminal features including mouse support, syntax highlighting, and clickable links.
rust-docs-json rustup component)Prebuilt binaries skip compilation and are available for x86_64/aarch64 macOS, x86_64 Linux, and x86_64 Windows.
If you have cargo-binstall, it reads the release metadata and installs the right binary for your platform:
cargo binstall ferritin
Otherwise, the installer scripts detect your platform, download the matching binary, and place it in ~/.cargo/bin:
macOS and Linux:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/jbr/ferritin/releases/download/ferritin-latest/ferritin-installer.sh | sh
Windows (PowerShell):
powershell -c "irm https://github.com/jbr/ferritin/releases/download/ferritin-latest/ferritin-installer.ps1 | iex"
Both of the above always install the most recent release. You can also pick a specific version or download archives directly from the [releases page].
To build from source (or for a platform without a prebuilt binary):
cargo install ferritin
To view documentation for std, core, and alloc:
rustup component add rust-docs-json
Local crate documentation requires a nightly toolchain:
rustup toolchain install nightly
Note: There is a relationship between ferritin's version and the nightly toolchain version. Ferritin supports a range of recent rustdoc JSON format versions, and if your nightly generates a newer format, ferritin will make a best effort at parsing it.
Launch the interactive browser:
ferritin -i
Once running, use h or ? to see available keybindings. Basic navigation:
g - go to an item by path (e.g., std::vec::Vec)s - search (Tab to toggle between current crate and all crates)l - list available cratesView documentation for a specific item:
ferritin get std::vec::Vec
ferritin get serde::Serialize
Search for items:
ferritin search "hash map"
ferritin search --crate tokio "spawn"
List available crates in your workspace:
ferritin list
Ferritin auto-detects how to render: ANSI colors on a terminal, plain text when piped, and a compact markdown-flavored format under a coding agent. Override it with --format . --format json emits a structured representation — of the resolved item for get, or of the results for search/list — for scripting and programmatic consumers:
ferritin get std::vec::Vec --format json
(The JSON shape is still settling as the library API evolves; a published JSON Schema is planned.)
Ferritin keeps its caches under a single directory — $FERRITIN_HOME if set, else $XDG_CACHE_HOME/ferritin, else ~/.cache/ferritin. Everything in it is reconstructible (fetched or derived), so it is always safe to delete:
docs/{crate}/{version}/{format-version}.json, with derived binary caches beside it (an rkyv archive for fast partial loads, and a .index file generated lazily on first search)crate-names/) used for version resolution and typeahead, and per-crate version lookups (crates-io-versions/){rustc sysroot}/share/doc/rust/json/ if availabletarget/doc/, not the shared cacheEarlier versions cached under $CARGO_HOME/rustdoc-json; a cache found there is migrated automatically on first run.
| Variable | Meaning |
|---|---|
FERRITIN_HOME | Cache root override (see above) |
FERRITIN_THEME | Default color theme (equivalent to --theme) |
FERRITIN_CRATE_NAMES_URL, FERRITIN_CRATE_DESCRIPTIONS_URL | Override where the crate-names artifacts are fetched from (e.g. a mirror) |
ferritin serve (the opt-in serve/acme features; not present in distributed binaries) is configured 12-factor style:
| Variable | Meaning |
|---|---|
HOST, PORT | Bind address (:: binds dual-stack) |
FERRITIN_CACHE_BYTES | In-memory crate-cache weight cap |
FERRITIN_RSS_HIGH_WATER_BYTES | RSS guard threshold (Linux only): shed cache weight when anonymous RSS exceeds it |
FERRITIN_RATELIMIT | Per-client /api requests per minute |
FERRITIN_ACME_DOMAIN | Activates automatic HTTPS via Let's Encrypt for this domain |
FERRITIN_ACME_CACHE_DIR | Required with ACME: persists the account key and certificates |
FERRITIN_ACME_CONTACT | Optional ACME contact email |
FERRITIN_ACME_PRODUCTION | Use the Let's Encrypt production directory (default: staging) |
Development-only knobs (not part of the stable interface): FERRITIN_TEST_MODE (normalized snapshot-test output), FERRITIN_REINDEX (rebuild search indexes in memory, bypassing the disk cache), and the search-scoring probes FERRITIN_NAME_WEIGHT, FERRITIN_ANCESTOR_WEIGHTS, and FERRITIN_NAME_PREFIX_COUNT.
Ferritin is at version 0.x and actively used by the author as a primary documentation interface. It's ready for general use, though the output format should be considered unstable and may change between versions.
If you're scripting against ferritin's output, be aware that the text format may change. Pin to a specific version or be prepared to update your scripts.
Ferritin is developed primarily on Unix-like systems and is also tested on Windows, where both the CLI and interactive TUI work (prebuilt x86_64 Windows binaries are provided). If you encounter issues on any platform, please open an issue or pull request.
Ferritin was originally developed to support the rustdoc-mcp MCP server, which provides Rust documentation access for Claude Code and other MCP clients.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.