Leeroopedia MCP Server
Give your AI coding agent access to best-practices of ML and AI.
$20 free credit on sign-up : that's plenty of searches, plans, and diagnoses. Skip the guesswork on your next fine-tuning run or inference deployment. No credit card required. Get your API key →
What is Leeroopedia?
Your ML & AI Knowledge Wiki. Learnt by AI, built by AI, for AI.
Expert-level knowledge across the full ML & AI stack, from fine-tuning and distributed training, to inference serving and GPU kernel optimization, to building agents and RAG pipelines. 1000+ frameworks and libraries, all in one place.
This MCP server turns your AI coding agent (Claude Code, Cursor, OpenAI Codex, ...) into an ML/AI expert engineer.
Browse the full knowledge base at leeroopedia.com.
Want to go end-to-end?
Leeroopedia gives your agent the knowledge. Kapso gives it the ability to act on it : research, experiment, and deploy. Together: a complete ML/AI engineer agent.
Benchmarks
We measured the effect of Leeroopedia MCP on real ML tasks built by Claude Code.
-
ML Inference Optimization: Write CUDA/Triton kernels for 10 KernelBench problems. 2.11x geomean speedup vs 1.80x (+17%), with/without Leeroopedia MCP. → results
-
LLM Post-Training: End-to-end SFT + DPO + LoRA merge + vLLM serving + IFEval on 8×A100. 21.3 vs 18.5 IFEval strict-prompt accuracy, 34.6 vs 30.9 strict-instruction accuracy, 272.7 vs 231.6 throughput. → results
-
Self-Evolving RAG: Build a RAG service that automatically improves itself over multiple rounds. 45.16 vs 40.51 Precision@5, 40.32 vs 35.29 Recall@5, in 52 vs 62 min wall time. → results
-
Customer Support Agent: Multi-agent triage system classifying 200 tickets into 27 intents. 98 vs 83 benchmark performance, 11s vs 61s per query. → results
Quick Start
1. Get Your API Key
- Go to app.leeroopedia.com
- Create an account or log in
- Navigate to Dashboard > API Keys
- Copy your API key (format:
kpsk_...)
2. Use the hosted server (no installation needed)
Just paste this URL into any MCP client that supports remote servers:
https://mcp.leeroopedia.com/mcp?token=kpsk_your_key_here
See the connect guides for all IDEs, running locally, and troubleshooting.
3. Configure Claude Code
Remote (no install):
claude mcp add --transport http leeroopedia "https://mcp.leeroopedia.com/mcp?token=kpsk_your_key_here"
Local (via uvx):
Add to your ~/.claude.json or project .mcp.json:
{
"mcpServers": {
"leeroopedia": {
"command": "uvx",
"args": ["leeroopedia-mcp"],
"env": {
"LEEROOPEDIA_API_KEY": "kpsk_your_key_here"
}
}
}
}
Getting
spawn uvx ENOENT? Your IDE can't finduvxin its PATH. Runwhich uvx(orwhere uvxon Windows) in your terminal to get the full path, then use it in your config:"command": "/home/username/.local/bin/uvx"Common locations:
~/.local/bin/uvx(Linux),~/.local/bin/uvx(macOS curl install),/opt/homebrew/bin/uvx(macOS Homebrew).
4. Configure Cursor
Remote (no install):
Add to your Cursor settings (.cursor/mcp.json):
{
"mcpServers": {
"leeroopedia": {
"url": "https://mcp.leeroopedia.com/mcp?token=kpsk_your_key_here"
}
}
}
Local (via uvx):
{
"mcpServers": {
"leeroopedia": {
"command": "uvx",
"args": ["leeroopedia-mcp"],
"env": {
"LEEROOPEDIA_API_KEY": "kpsk_your_key_here"
}
}
}
}
Getting
spawn uvx ENOENT? See the tip in Configure Claude Code above.
5. Configure OpenAI Codex
Run the CLI command:
codex mcp add leeroopedia --env LEEROOPEDIA_API_KEY=kpsk_your_key_here -- uvx leeroopedia-mcp
Or add to your ~/.codex/config.toml:
[mcp_servers.leeroopedia]
command = "uvx"
args = ["leeroopedia-mcp"]
[mcp_servers.leeroopedia.env]
LEEROOPEDIA_API_KEY = "kpsk_your_key_here"
Getting
spawn uvx ENOENT? See the tip in Configure Claude Code above.
6. Optional: Add the Agent Skill File
For coding agents that support project-level instruction files (Claude Code, Cursor, Codex), you can add an optional skill file that teaches the agent when and how to pick the right Leeroopedia tool for each situation. This improves tool selection, encourages parallel searches, and provides canonical workflows for common tasks like "How do I implement X?" or "My run crashed".
Download SKILL.md and place it in the appropriate location for your agent:
| Agent | Where to place the file | Format |
|---|---|---|
| Claude Code | Project root or CLAUDE.md (paste the content) |
Markdown |
| Cursor | .cursor/rules/leeroopedia.md (or add as an Agent Skill) |
Markdown |
| Codex | Project root AGENTS.md (paste the content) |
Markdown |
This step is optional. The MCP tools work without the skill file. The skill file just helps the agent make better tool choices automatically.
Documentation
docs.leeroopedia.com — full setup guides, environment variables, troubleshooting, connect guides for every IDE, and detailed tool usage.
Contributing
We welcome contributions! Please see our Contributing Guide for details on how to get started.
This project follows our Code of Conduct.
License
This project is licensed under the MIT License.
Metadata
Release files for leeroopedia-mcp 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leeroopedia_mcp-0.1.8.tar.gz | 23.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leeroopedia_mcp-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.0 kB
Release files / leeroopedia_mcp-0.1.8.tar.gz
| Download URL | leeroopedia_mcp-0.1.8.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61251310fd5e102e7dfc5a6a5a893d69d7aaca1a876e6aea34d2e5da5df5f023
|
|
BLAKE2b-256 checksum How to use checksums |
b007480a1035de20bd3608ef9b0a41a4ca4c88af01bd451352edc951774ad5c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / leeroopedia_mcp-0.1.8-py3-none-any.whl
| Download URL | leeroopedia_mcp-0.1.8-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b31ac529b2f449eedca4810c79f7161256db674aa9f0da06b980fc4d32b7a60d
|
|
BLAKE2b-256 checksum How to use checksums |
c6cf046265e7cb106570a878b1be8260242376a167aa0ca25f32698ccf1301f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|