# Machine Library

Hooks your agent up to papers, books, patents and social posts, and hands back canonical links you can cite.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 11
- Author: SpaceFrontiers
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/SpaceFrontiers/mcp
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/mcp/machine-library

## What it does

Machine Library is a hosted MCP server that gives an agent a retrieval layer over peer-reviewed papers, books, patents, standards, Wikipedia, Reddit, Telegram, Discord and YouTube. Hits come back with a canonical `source_uri`, a snippet of up to 900 characters and an abstract preview of up to 800 characters, so the agent can point at a source instead of paraphrasing from memory.

Four core tools are read-only. `machinelibrary_search_documents` covers papers, patents and standards; `machinelibrary_search_social` covers Reddit, Telegram and Discord; `machinelibrary_fetch_document` returns bounded full text, 40K characters by default and up to 100K; `machinelibrary_search_in_document` pulls up to five matching passages out of one document. Search returns 10 hybrid-ranked results by default and is capped at 30. The hosted server also exposes `machinelibrary_research` plus three write tools for search feedback, document comments and comment votes.

Transport is Streamable HTTP at `https://mcp.machinelibrary.ai`, with OAuth 2.1 and PKCE or a Bearer API key. Claude opens a browser on first use, but Cursor, VS Code, Cline and Windsurf need the key pasted into an `Authorization` header — skip that and every call fails. Search is billed: $0.01 base plus $0.001 per returned result, $0.05 for a full document fetch, $0.015 for in-document passage search. Citation backlinks on `machinelibrary_fetch_document` are opt-in because they trigger another billed search.

## Requirements
- Remote server: `https://mcp.machinelibrary.ai/`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp.machinelibrary.ai/
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add machine-library --url https://mcp.machinelibrary.ai/
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "machine-library": {
            "url": "https://mcp.machinelibrary.ai/"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "machine-library": {
            "type": "http",
            "url": "https://mcp.machinelibrary.ai/"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http machine-library https://mcp.machinelibrary.ai/
```

## When to use it
- cite a primary source instead of paraphrasing it
- check prior art before filing a patent
- pull community discussion from Reddit and Telegram
- find a passage inside a 20K-token document
- get full text plus a canonical link for a paper

## Example prompts
- Find papers on retrieval-augmented generation and give me the source links
- Check prior art for this method
- What are people saying on Reddit and Telegram about this tool?

## Similar
- [Zotero MCP](https://affpapa.org/en/nevibecode/mcp/zotero-mcp.md) — MCP server · ★ 5548
- [arxiv-mcp-server](https://affpapa.org/en/nevibecode/mcp/arxiv-mcp-server.md) — MCP server · ★ 3231
- [PaperBanana](https://affpapa.org/en/nevibecode/mcp/paperbanana.md) — MCP server · ★ 2417
- [MATLAB MCP Server](https://affpapa.org/en/nevibecode/mcp/matlab-mcp-server.md) — MCP server · ★ 1716
- [Hex Research](https://affpapa.org/en/nevibecode/mcp/hex-research.md) — MCP server · ★ 583
- [DocsAgent — Zotero, Obsidian & Apple Notes MCP Server](https://affpapa.org/en/nevibecode/mcp/docsagent-zotero-obsidian-apple-notes-mcp-server.md) — MCP server · ★ 578

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
