
Codeforces Mcp
io.github.avinash111921由 GitHub 帳號 avinash111921 發布v0.1.0更新於 Oct 29, 2026
Codeforces MCP server for competitive programming, upsolving, and automated stress testing.
概覽
Codeforces MCP 伺服器,讓 AI 助理抓取題目、分析提交紀錄、推薦補題目標,並在本機執行自動化壓力測試。
- 可以做什麼
- 取得 Codeforces 使用者的即時資料與統計:評分、排名與近期判題結果分布
- 抓取完整題面與官方範例測資,可繞過 Cloudflare
- 在本機編譯並執行 C++ 或 Python 解法,對照官方範例輸入
- 執行自動化壓力測試,以暴力腳本和隨機產生器比對最佳化解法,找出最小失敗測資
- 透過排隊與快取控制請求,避免觸發 Codeforces API 的頻率限制
- 適用情境
- 適合想讓助理拉取 Codeforces 題目與範例、檢視自己的提交紀錄、挑選補題目標,並用本機壓力測試除錯解法的競賽程式設計者。
- 執行需求
- 以本機程序執行,透過 uvx 啟動 codeforces-mcp 這個 PyPI 套件,需要 Python 工具鏈。未宣告帳號、API 金鑰、環境變數或請求標頭。需要連線至 Codeforces 的網路,編譯與執行解法還需本機 C++ 或 Python 環境。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Codeforces Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Codeforces MCP Server
A Model Context Protocol (MCP) server for Codeforces competitive programming. This server enables AI coding assistants (like Claude, Cursor, and Cline) to autonomously fetch problem statements, analyze your submission history, recommend upsolving targets, and run automated local stress tests.
Features
- Profile & Stats: Fetch live user ratings, ranks, and recent verdict breakdowns.
- Problem Scraping: Bypasses Cloudflare to extract full problem descriptions and exact sample test cases.
- Local Sandbox: Compiles and executes C++ or Python solutions locally against official sample inputs.
- Automated Stress Testing: Isolates minimal failing test cases by running your optimized code against a brute-force script and a random generator.
- Rate-Limit Safe: Built-in queuing and caching ensures you never hit the Codeforces API 1-request-per-2-seconds limit.
Installation & Usage
You can run this server seamlessly using uvx without manual installation. Add the following configuration to your preferred AI IDE.
Cursor
Add this to your MCP configuration (Settings > Features > MCP):
來源:README.md,提交 aa4f4ea
工具
0版本歷史
1- v0.1.0最新Oct 29, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。