Libdocs Remote

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 1, 2026

Forward Context7 library documentation lookups to the hosted remote MCP endpoint.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 stdio MCP 服务器,将库文档查询转发到托管的 Context7 远程端点,返回库 ID 与文档。

可以做什么
  • 把库名称解析为 Context7 兼容的库 ID,并返回匹配的库列表。
  • 按库 ID 获取该库的最新文档与代码示例,可按主题和 token 数量缩小范围。
  • 将上游的 HTTP 错误、JSON-RPC 错误和连接失败作为工具错误返回,并附带原始信息。
适用场景
适合在编写代码时让助手获取最新的库文档和代码示例,并且希望用一个本地 stdio 服务器代理托管 Context7 服务,而不是直接调用它。
运行要求
以本地进程运行,可通过 npx(npm 包)或 Docker(OCI 镜像)启动。需要能访问托管的 Context7 远程 MCP 端点。CONTEXT7_API_KEY 为可选项,设置后会作为请求头发送给该端点。
安装前请注意
查询内容和库名称会发送给第三方托管的 Context7 端点。可选的 CONTEXT7_API_KEY 会传给该服务,应视为机密。该服务器只读取文档,不写入数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Libdocs Remote,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

libdocs-remote

libdocs-remote is the hosted variant of the library-docs lookup. Instead of calling a REST API locally, it forwards each request as a JSON-RPC tools/call to the hosted Context7 remote MCP endpoint at https://mcp.context7.com/mcp and returns the answer it gets back. It understands both plain JSON answers and text/event-stream (SSE) answers, reading the JSON-RPC payloads out of the data: lines.

Use it when you want the hosted service to do the work and only need a local stdio server (or a small CLI) in front of it.

CONTEXT7_API_KEY is optional. When it is set, it is sent as the CONTEXT7_API_KEY header documented for the hosted endpoint; when it is absent, no such header is sent and that is not an error.

Install

bash
npx @reneturcios/libdocs-remote resolve "next.js"docker run -i ghcr.io/cloudcorprecords/libdocs-remote

CLI

bash
libdocs-remote resolve "next.js"libdocs-remote docs /vercel/next.jslibdocs-remote docs /vercel/next.js --topic routing --tokens 20000libdocs-remote --version

Exit codes: 0 success, 1 lookup error, 2 usage error.

MCP server

bash
npx -y @reneturcios/libdocs-remote mcp
json
{  "mcpServers": {    "libdocs-remote": {      "command": "npx",      "args": ["-y", "@reneturcios/libdocs-remote", "mcp"],      "env": { "CONTEXT7_API_KEY": "your-key-if-you-have-one" }    }  }}

The env block is optional.

Tools

ToolInputWhat it returns
resolve-library-idlibraryName (string, required)The matching libraries as returned by the hosted endpoint.
get-library-docscontext7CompatibleLibraryID (string, required), tokens (number, optional), topic (string, optional)Documentation text as returned by the hosted endpoint.

Upstream failures — HTTP errors, JSON-RPC errors, unreachable hosts — are reported as tool errors with the underlying message.

Development

bash
npm installnpm run buildnpm testnpm run dev

Tests run entirely on fake-fetch fixtures, including plain-JSON and SSE upstream bodies; no network is used.

License

MIT — see LICENSE.

来源:README.md,提交 5802022

工具

2

resolve-library-id

Resolve a library name into a Context7-compatible library ID, returning the matching libraries.

输入参数libraryName必填

get-library-docs

Fetch current documentation and code examples for a library using its Context7-compatible library ID.

输入参数topictokenscontext7CompatibleLibraryID必填

版本历史

1
  1. v0.1.0最新Nov 1, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分