
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 分