Codeforces MCP Server

io.github.ketherworks由 GitHub 账号 ketherworks 发布v0.1.0更新于 Nov 2, 2026

Search Codeforces problems and inspect public problem metadata through the official Codeforces API.

已验证Streamable HTTP可网页运行网页搜索与抓取开发者工具

概览

AI 生成的概览

托管式 MCP 服务器,让助手通过 Codeforces 官方 API 搜索题目并查看公开题目元数据。

可以做什么
  • 按标题、编号、评分或标签搜索 Codeforces 官方题库
  • 按编号获取官方题目元数据,支持 158/A、158A、158-A 等写法
  • 报告可用的只读操作与传输方式,并查询服务健康状态及最近一次官方 API 观测结果
适用场景
适合让助手按难度或标签查找练习题,或查询某道 Codeforces 题目的具体信息,无需离开对话。
运行要求
远程 streamable HTTP 端点;匿名只读请求无需 API 密钥、Cookie 或评测账号。若从源码本地运行,需要 Node.js 22 或更高版本。
安装前请注意
非官方项目,与 Codeforces 无隶属或背书关系。仅读取公开题目数据,不提供运行或提交工具,无法代你解题或提交。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Codeforces MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.ketherworks%2Fcodeforces/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "codeforces": {
      "type": "http",
      "url": "https://codeforces-oj-mcp.lantangtang54.workers.dev/mcp"
    }
  }
}

README

Codeforces MCP Server

简体中文

Search official Codeforces problem metadata through a small MCP server.

Quick Start

Add the hosted server to your MCP configuration:

json
{  "servers": {    "codeforces": {      "type": "http",      "url": "https://codeforces-mcp.ksrnyx.top/mcp"    }  }}

The endpoint accepts anonymous read requests. It does not need an API key, Cookie, or judge account.

Then ask:

text
Find five beginner Codeforces problems tagged implementation.

What It Can Do

ToolPurpose
oj_capabilitiesReport the available Codeforces read operations and transport.
oj_healthReport service health and the latest official API observation.
oj_search_problemsSearch the official problemset by title, id, rating, or tag.
codeforces_get_problem_metadataFetch official metadata by id, such as 158/A, 158A, or 158-A.

Run Locally

Requires Node.js 22 or newer.

bash
npm cinpm run checknpm run buildnode packages/codeforces/dist/index.js

MCP client configuration from a source checkout:

json
{  "servers": {    "codeforces": {      "type": "stdio",      "command": "node",      "args": ["/absolute/path/packages/codeforces/dist/index.js"]    }  }}

Tagged GitHub releases attach a standalone npm tarball.

Availability

  • Hosted MCP: https://codeforces-mcp.ksrnyx.top/mcp
  • Official MCP Registry: io.github.ketherworks/codeforces, described by server.json
  • Health status: see the repository homepage or call oj_health

Source and Safety

This standalone release is generated from the reviewed Competitive Programming MCP source. The release package bundles the shared OJ contract implementation, so its runtime does not depend on unpublished workspace packages.

Platform Rules

This project is unofficial and is not affiliated with or endorsed by Codeforces.

The server exposes no run or submit tool. It accepts no judge account credentials. See SECURITY.md for the security boundary and PROVENANCE.md for the canonical source revision.

Development

bash
npm cinpm run checknpm run pack:checknpm run deploy:dry

License

Adapter source code is MIT licensed. Judge problem content and trademarks are not relicensed by this repository.

来源:README.md,提交 c34dbcc

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分