
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 实现,提供论文查看、排序后的代码仓库与全文搜索。
- 可以做什么
- 查询论文:用 arXiv ID 或完整网址获取论文元数据与高置信度的实现仓库。
- 适用场景
- 当你需要从 arXiv 论文找到对应的 GitHub 实现、比较同一篇论文的候选仓库,或按主题、年份、会议筛选带代码的论文时使用。适合文献综述、复现实验前挑选仓库,以及需要结构化 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 分