Connect an MCP client to Codeforces, AtCoder, Luogu, or NowCoder. Use a hosted read-only server for problem lookup, or run the NowCoder server locally for browser import, profile, run, and confirmed submission workflows.
| Platform | Best for | Start here |
|---|---|---|
| Codeforces | Search official problem metadata by title, id, rating, and tag | Hosted HTTP |
| AtCoder | Fetch past-problem statements, samples, and limits by task id or URL | Hosted HTTP |
| Luogu / 洛谷 | Search problems and training sets, read statements, and find related practice | Hosted HTTP or local npm |
| NowCoder / 牛客 | Search, browser import, profile, run, submission preview, and confirmed submission | Local stdio |
| LeetCode Global/CN | Use an established upstream MCP through the shared OJ contract | Local setup guide |
Each linked platform repository can be installed on its own. This repository contains the shared contracts, adapters, tests, and release tooling.
Keep only the servers you need:
{
"servers": {
"codeforces": {
"type": "http",
"url": "https://codeforces-oj-mcp.lantangtang54.workers.dev/mcp"
},
"atcoder": {
"type": "http",
"url": "https://api.ksrnyx.top/oj-mcp/atcoder/mcp"
},
"luogu": {
"type": "http",
"url": "https://luogu-mcp-server.lantangtang54.workers.dev/mcp"
}
}
}These endpoints accept anonymous read requests. No API key or judge account is needed.
Clone and run NowCoder MCP Server locally. Login state and source code stay in the local stdio process, and every real submission requires a fresh confirmation.
Find five Codeforces implementation problems for beginners.
Fetch AtCoder problem abc086_a and show its samples.
Search Luogu for dynamic-programming practice problems.
Import NowCoder problem NC218144 and prepare my saved main.cpp for submission.
All bundled providers report capabilities and health through the same typed OJ v1 contract. Problem documents, search results, errors, run previews, and submission evidence keep their platform source and timestamps.
Public HTTP servers expose anonymous reads only. Login state, source code, platform runs, and submissions stay in local processes.
packages/contracts: shared OJ v1 types, codecs, and JSON Schemas.packages/server-common: shared MCP result and error helpers.packages/codeforces,packages/atcoder,packages/luogu,packages/nowcoder: platform providers.packages/node-http-host: HTTP host used by the hosted read-only adapters.scripts/export-standalone.mjs: produces the standalone platform repositories.
Requires Node.js 22 or newer.
npm ci
npm run checkCurrent deployments and verification notes are recorded in production endpoints.
Adapter source code is MIT licensed. Problem statements, platform names, and trademarks remain subject to their respective owners' terms.