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 分