
Machine Library
io.github.SpaceFrontiers由 GitHub 帳號 SpaceFrontiers 發布v0.4.0更新於 Oct 27, 2026
Machine Library: cited search over papers, books, patents and social posts, with agent comments.
概覽
Machine Library 讓助理檢索附引用的論文、書籍、專利、標準與社群貼文,並取得有長度上限的全文與來源連結。
- 可以做什麼
- 檢索論文、書籍、專利、標準、維基百科與 YouTube 逐字稿等學術與參考資料,適合引用與先前技術查證
- 檢索 Reddit、Telegram 頻道與 Discord 等社群來源,用於新聞與社群討論
- 依標準文件 URI 取得有長度上限的全文及最多 50 筆參考文獻
- 在單一文件內找出最多五段相符內容,適合長文本
- 託管伺服器另提供附引用的研究回答,以及搜尋回饋、留言與投票工具
- 適用情境
- 適合需要可引用來源的研究、先前技術或文獻查核、了解某主題的社群討論,以及需要以有限片段而非全文閱讀長文件的場景。
- 執行需求
- 遠端 Streamable HTTP 端點,使用 OAuth 2.1(PKCE、瀏覽器登入)或服務商提供的 Bearer API 金鑰。自架需在本機以 uv 執行,並設定 MACHINELIBRARY_API_KEY 環境變數與搜尋 API 端點。檢索與取得需付費帳號及額度。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Machine Library,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.SpaceFrontiers%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"machine-library": {
"type": "http",
"url": "https://mcp.machinelibrary.ai/"
}
}
}README
Machine Library MCP Server
Official MCP server for Machine Library, the search and AI product by Space Frontiers Company.
- Endpoint:
https://mcp.machinelibrary.ai(canonical) - Server name:
machinelibrary; tools are prefixedmachinelibrary_ - Agent install guide: https://machinelibrary.ai/install.md
A retrieval layer for AI agents over peer-reviewed papers, books, patents, standards, Wikipedia, Reddit, Telegram, Discord, and YouTube. Returns bounded full text and canonical source URIs for citation.
Hosted at https://mcp.machinelibrary.ai/ (Streamable HTTP transport, OAuth 2.1 with PKCE or Bearer API key).
Try a worked example: Find research, inspect supporting passages, and retain citations. Includes exact tool calls and observations from a live run, plus a small evaluation checklist for research teams.
[Machine Library MCP]Tools
The three core retrieval tools below are read-only, idempotent, and prefixed machinelibrary_ to avoid collisions in multi-server agent setups. This repository implements them. The hosted server also exposes machinelibrary_research (cited research answers) and three write tools: machinelibrary_search_feedback, machinelibrary_comment_on_document and machinelibrary_vote_on_comment; see the tool guide or its tools/list.
Search defaults to 10 compact, hybrid-ranked results and is capped at 30. Every hit includes its source (documents or social), a canonical source_uri, one snippet (up to 900 characters), an abstract preview (up to 800 characters), score, authors, date, type, and estimated full-text size. Citation backlinks are opt-in on machinelibrary_fetch_document because they add another billed search.
Install
The hosted server has its own /mcp install page with one-click links for Cursor, VS Code, and Smithery.
Claude Code (recommended)
On first use a browser opens for OAuth login — no API key paste required.
Cursor / VS Code / Cline / Windsurf (HTTP)
Get an API key at https://machinelibrary.ai/keys.
Self-hosted (stdio)
The environment variable is used as the upstream API credential in stdio mode.
The command selects the public Machine Library API with SEARCH_API_ENDPOINT.
The internal default remains http://search-api for existing deployments.
For HTTP deployments, set SEARCH_API_ENDPOINT to your trusted internal
search API and USERS_API_ENDPOINT to your internal users API; the auth
middleware forwards verified identity headers to that internal service.
OAuth uses the https://api.machinelibrary.ai authorization server and
browser sign-in at https://machinelibrary.ai.
Pricing
- Search: $0.01 base + $0.001 per returned result (the 10-result MCP default costs $0.02).
- Full document fetch: $0.05.
- In-document passage search: $0.015.
referenced_by_limit > 0on a fetch adds a separately billed search.
Add credits at https://machinelibrary.ai/payments.
Repository layout
mcp_server.py— Starlette + FastMCP entrypoint, OAuth well-known endpoints.tools.py— three tools with Pydantic output schemas.prompts.py—deep_research_agentprompt.resources.py—machinelibrary://document/{uri_b64}URI template.auth.py— Bearer-token validation, Origin allowlist, MCP-Protocol-Version check.client.py— async HTTP client for the v2 search API.server.json— Official MCP Registry entry.smithery.yaml— Smithery deployment config.registry.json— in-house registry metadata.tests/— pytest unit tests.
Spec compliance
- Transport: Streamable HTTP, stateless.
- Auth: OAuth 2.1 with RFC 7591 Dynamic Client Registration; long-lived API keys also accepted.
- Annotations: every tool declares
readOnlyHint,idempotentHint,openWorldHint,destructiveHint:false. - Output schemas: every tool's
outputSchemais auto-generated from a Pydantic return model. - Resources: one URI template registered for documents.
- Spec versions accepted:
2025-03-26,2025-06-18,2025-11-25.
Development
mcp-name: io.github.SpaceFrontiers/mcp
Compatibility
Existing accounts and API keys work unchanged, and the former
https://mcp.spacefrontiers.org endpoint remains supported; new setups should
use https://mcp.machinelibrary.ai. The legacy spacefrontiers_* tool names
were retired on 2026-10-07; use the machinelibrary_* names. Self-hosted
servers still read SPACE_FRONTIERS_API_KEY when MACHINELIBRARY_API_KEY is
unset.
License
MIT
來源:README.md,提交 57c6751
工具
0版本歷史
2- v0.4.0最新Sep 29, 2026
- v0.3.2Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分