Leeroopedia MCP Server
OfficialProvides OpenAI Codex with expert-level ML and AI knowledge from Leeroopedia, enhancing its ability to handle ML/AI coding tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Leeroopedia MCP Server best practices for fine-tuning LLMs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Leeroopedia MCP Server
$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.
Related MCP server: Aindreyway MCP Codex Keeper
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_hereSee 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-mcpOr 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 | Markdown |
Cursor |
| Markdown |
Codex | Project root | 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.
Available Tools
8 toolsbuild_planA
Get a structured implementation plan based on knowledge base documentation.
Covers a wide range of ML/AI frameworks, libraries, and tools with architecture docs, implementation patterns, configuration references, and troubleshooting guides.
Returns an actionable plan with numbered steps, specs, and validation criteria — all based on how the framework actually works.
Use this tool when you:
Are about to implement something and want the correct sequence of steps
Need a plan informed by real framework documentation, not just general knowledge
Want validation criteria to verify your implementation against
Returns: overview, key specs, numbered steps, and validation criteria.
Inputs: goal (required), constraints.
diagnose_failureA
Diagnose errors, failures, or unexpected behavior using knowledge base documentation.
Checks your symptoms and logs against known failure patterns, common misconfigurations, and documented environment issues — finding root causes faster.
Use this tool when you need:
Root cause analysis of errors, crashes, or unexpected behavior
Debugging configuration issues or dependency problems
Understanding why a framework behaves differently than expected
Returns: diagnosis, fix steps, and prevention advice.
Inputs: logs (required), symptoms (required).
get_pageA
Retrieve the full content of a specific knowledge base page by its exact ID.
Other tools return [PageID] citations in their responses. If you need more detail from a cited page, call this tool with that page ID to get the full content.
Use this tool when you:
See a [PageID] citation in a response and want the full page content
Need deeper detail than what was included in a synthesized answer
Want to read a specific page directly without searching
Returns the page formatted as markdown, or an error if the page ID is not found.
Inputs: page_id (required).
propose_hypothesisA
Propose ranked approaches or solutions based on knowledge base documentation.
When you're unsure how to proceed, this tool suggests alternative approaches ranked by fit — all backed by documented framework patterns and best practices.
Use this tool when you need:
Ideas for how to implement or architect something
Alternative approaches ranked by fit for your use case
Suggestions backed by documented framework patterns and best practices
Returns: ranked hypotheses with rationale and suggested next steps.
Inputs: current_status (required), recent_experiments.
query_hyperparameter_priorsA
Query documented configuration values, recommended ranges, and tuning heuristics.
Look up recommended parameter values, default settings, and tuning strategies for frameworks and libraries — based on documented best practices.
Use this tool when you need:
Default or recommended values for framework configuration parameters
Recommended ranges and tuning strategies for any setting
Context-specific suggestions (hardware, model size, task type, scale)
Returns: suggestion table with ranges and KB-grounded justification.
Inputs: query (required).
review_planA
Review your implementation plan against knowledge base documentation before coding.
Pass your proposed approach and the KB will check it against documented best practices, known pitfalls, and real framework behavior — catching mistakes before you write code.
Use this tool when you:
Have a plan and want to validate it before executing
Want to catch incorrect assumptions about how a framework works
Need to know what pitfalls or edge cases to watch out for
Returns: approvals (what looks good), risks, and improvement suggestions.
Inputs: goal (required), proposal (required).
search_knowledgeA
Search the knowledge base for framework documentation, API references, config formats, and best practices.
Covers a wide range of ML/AI frameworks, libraries, and tools with architecture docs, implementation patterns, configuration references, and troubleshooting guides.
Use this tool when you need to:
Understand how a framework, library, or API works before implementing
Look up config formats, data structures, or expected behavior
Learn about architecture, design patterns, or conventions of a project
Get verified information instead of guessing about framework internals
IMPORTANT: Use this tool BEFORE you start coding whenever the task involves a framework or library. It is much faster and more accurate than guessing. Call this tool multiple times in parallel with different queries to search from multiple angles at once.
Returns a synthesized answer with [PageID] citations.
Inputs: query (required), context.
verify_code_mathA
Verify code correctness against knowledge base documentation and reference implementations.
Checks your code against documented behavior, reference implementations, and API contracts — catching errors before they become bugs.
Use this tool when you need:
Verification that code correctly implements a concept, algorithm, or API contract
Detection of logic errors, off-by-one mistakes, or wrong assumptions
Comparison against reference implementations or documented behavior
Returns: verdict (Pass/Fail), analysis of discrepancies.
Inputs: code_snippet (required), concept_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have clearly distinct purposes: get_page vs search_knowledge vs query_hyperparameter_priors separate retrieval modes, and build_plan/review_plan/verify_code_math/diagnose_failure cover distinct lifecycle stages. However, propose_hypothesis overlaps noticeably with build_plan (both suggest approaches/implementation steps), and query_hyperparameter_priors can be confused with search_knowledge for config lookups.
All eight tools use consistent snake_case verb_noun patterns (query_hyperparameter_priors, search_knowledge, build_plan, review_plan, verify_code_math, diagnose_failure, propose_hypothesis). get_page is the only noun-first name but is a common idiom and still clearly readable.
Eight tools is well within the ideal 3-15 range and each maps to a distinct KB-backed capability (search, retrieve, plan, review, verify, diagnose, propose, config lookup). No tool feels redundant or padded.
The surface covers the full dev lifecycle from retrieval through planning, review, verification, and diagnosis, which matches the stated KB-assistant purpose well. A minor gap is the absence of any discovery/index tool to browse or enumerate available page IDs, leaving get_page dependent on citations from other tools.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Related MCP Servers
AlicenseAqualityBmaintenanceMCP server that gives AI coding agents direct access to evaluation tools.23Apache 2.0- AlicenseAqualityNot gradedmaintenanceAn intelligent MCP server that serves as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.41MIT
- AlicenseAqualityCmaintenanceLocal-first MCP server that gives any AI coding agent per-project memory, workflow intelligence, and always-on, lossless token & context optimization.378 npm6MIT
- AlicenseBqualityDmaintenanceMCP server that gives AI coding assistants persistent memory, structural code graph analysis, and safe multi-agent coordination, enabling them to answer architectural questions, track decisions across sessions, and coordinate safely in multi-agent workflows.394MIT