# paperswithcode-mcp
MCP server for Papers with Code - SOTA benchmarks, tasks, datasets, and paper discovery.
## Features
- **Search**: Papers, tasks, datasets, methods, repositories
- **SOTA Lookup**: Find state-of-the-art results for any task/dataset
- **Leaderboards**: Browse evaluation tables and benchmark results
- **Paper-to-Benchmark**: Map papers to their benchmark results
## Installation
```bash
uv venv && source .venv/bin/activate
uv pip install -e .
```
## Usage
```bash
# Run the server
paperswithcode-mcp
# Or as module
python -m paperswithcode_mcp.server
```
## Tools
| Tool | Description |
|------|-------------|
| `pwc_search_papers` | Search papers by query |
| `pwc_get_paper` | Get paper details |
| `pwc_paper_benchmarks` | Get benchmark results for a paper |
| `pwc_search_tasks` | Search ML tasks |
| `pwc_task_leaderboards` | Get leaderboards for a task |
| `pwc_get_sota` | Get SOTA results from a leaderboard |
| `pwc_search_datasets` | Search datasets |
| `pwc_dataset_leaderboards` | Get leaderboards for a dataset |
| `pwc_search_methods` | Search methods/architectures |
| `pwc_search_repos` | Search code repositories |
## API
Base URL: `https://paperswithcode.com/api/v1`
No authentication required for read access.