
Code of Paper
io.github.isagelswann由 GitHub 帳號 isagelswann 發布v0.3.2更新於 Oct 24, 2026
Find GitHub implementations of arXiv research papers — paper lookup, ranked code, search.
概覽
Code of Paper 讓助理查詢 arXiv 論文並找出對應的 GitHub 實作,提供論文檢視、排序後的程式碼 repo 與全文搜尋。
- 可以做什麼
- 查詢論文:以 arXiv ID 或完整網址取得論文中介資料與高信心度的實作 repo。
- 適用情境
- 當你想從 arXiv 論文找到對應的 GitHub 實作、比較同一篇論文的候選 repo,或依主題、年份、會議篩選有程式碼的論文時使用。適合研究回顧、重現實驗前的repo 挑選,以及需要結構化 JSON 輸出的自動化流程。
- 執行需求
- 在本機以 uvx 執行 PyPI 套件 codeofpaper(需 Python 3.10 以上),透過 stdio 連線。預設連線至 api.codeofpaper.com,可用環境變數 CODEOFPAPER_API_URL 覆寫;匿名使用每分鐘 60 次請求,無需 API 金鑰。需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Code of Paper,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Code of Paper CLI
Maintenance mode. This CLI and MCP server are not actively developed. They keep working as long as api.codeofpaper.com is up; issues may go unanswered.
Discover GitHub implementations of research papers — from the terminal.
Search 181k+ arXiv papers and find their code on GitHub. Works for humans and AI agents alike.
[PyPI] [Python 3.10+] [License: MIT]
Install
Or with pipx for isolated installs:
Requires Python 3.10+. No API key needed — works anonymously at 60 requests/minute.
Quick Start
Output Formats
Use -o / --output before the subcommand:
The shorthand -q is equivalent to -o quiet:
You can set a default format via config so you don't need -o every time:
Commands
Discovery
Browsing
Bulk Operations
Configuration
Command Details
search
Options: --limit, --offset, --sort (relevant, recent, has_code), --has-code, --category.
research
Multi-step orchestrated overview of a research topic:
batch
Process multiple queries or IDs from a file or stdin. Always outputs JSONL regardless of -o:
Supported commands: paper, search, code, similar, suggest.
Each line produces one JSON object:
Options: --delay (seconds between calls, default 0.5).
export
Paginated bulk export from trending, conference, or search:
Auto-paginates through results (100 per page, 0.5s delay). Options: --max (default 200), --has-code, --category, --days.
Agent Integration
The CLI is designed for AI agent consumption. Key features:
Stable Exit Codes
Agents can branch on exit codes without parsing error messages:
Machine-Readable Output
HTTP Cache
Responses are cached on disk for 30 minutes (~/.cache/codeofpaper/http/), so repeated calls are instant and free.
MCP Server (optional)
Code of Paper ships an optional Model Context Protocol server that exposes paper / code lookup as tools to any MCP-compatible agent — Claude Desktop, Cursor, Continue, Cline, Zed, etc.
Install with the mcp extra:
This adds a codeofpaper-mcp entry point that speaks MCP over stdio.
Wire into Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows), or ~/.config/Claude/claude_desktop_config.json (Linux):
This pulls + runs the server on demand — no global install needed. If you've already pip install'd the package, you can replace the command with just "codeofpaper-mcp" and drop args.
Wire into Cursor / Continue / Cline
Most MCP clients accept the same shape:
Tools exposed
All tools are read-only, return plain JSON, and surface API errors as {"error": "...", "status": N} rather than throwing — agents get structured output either way.
Common Workflows
Core Discovery
Browsing & Monitoring
Composable Pipelines
Multi-Step Scripts
Configuration
Config is stored as JSON via platformdirs:
Fields:
No config file needed — everything works out of the box with sensible defaults.
Priority Chain
Options are resolved in this order (first wins):
- CLI flag (
--api-url,--api-key,--ca-bundle,-o) - Environment variable (
CODEOFPAPER_API_URL,CODEOFPAPER_API_KEY,CODEOFPAPER_CA_BUNDLE,CODEOFPAPER_OUTPUT,CODEOFPAPER_TIMEOUT) - Config file
- Built-in defaults
Corporate Proxies / Custom TLS Certificates
If you're behind a corporate proxy that performs TLS inspection (man-in-the-middle), you'll see an SSL error like:
To fix this, point the CLI at your corporate CA certificate bundle (PEM file). Three equivalent ways, in priority order:
Ask your IT department for the CA certificate file if you don't have it.
Tip: If you've already set
SSL_CERT_FILEfor other tools (pip, curl, etc.), httpx respects that variable automatically — no extra configuration needed.
Alias: cop
Both codeofpaper and cop are installed as entry points:
Note: If
copconflicts with another tool on your system, usecodeofpaperinstead.
Shell Completion
Install tab completion for your shell:
Supports bash, zsh, fish, and PowerShell. After installing, restart your shell or source the completion file.
Help
Links
- Website: https://codeofpaper.com
- API docs: https://api.codeofpaper.com/docs
- Agent discovery: https://codeofpaper.com/llms.txt
License
MIT
來源:README.md,提交 f4d05fd
工具
0版本歷史
1- v0.3.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分