cf-mcp-orange
Provides tools for fetching user profiles, comparing users, searching problemsets, retrieving problem statements, generating practice problem recommendations, analyzing submissions, and recommending unsolved problems from recent contests on Codeforces.
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., "@cf-mcp-orange Show tourist's Codeforces profile"
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.
cf-mcp-orange π
A complete, all-in-one MCP (Model Context Protocol) server for Codeforces. Designed to supercharge AI coding assistants like Cline and Claude Desktop.
β¨ Features (9 Powerful Tools)
get_userβ Fetch a detailed profile (rating, max rating, last 5 contests, problem stats by difficulty, top 10 categories).compare_userβ Side-by-side comparison of two Codeforces users.get_problemlistβ Search the entire problemset by rating range, topic tags (AND/OR), and sorting.get_problemβ Retrieve the full problem statement, rating, and tags for any specific contest/problem ID.get_practiceproblemsβ Identify a user's weakest core topics and recommend 3 targeted problems within+300rating.get_random_practiceβ A completely random problem within+/- 300of a user's current rating.get_upsolveβ Analyzes a user's last 10 contests and recommends unsolved problems within their rating range.get_statusβ Summarizes the last 1000 submissions (AC/WA/TLE counts) and the 20 most recent attempts.
Related MCP server: DevAssist MCP Server
π¦ Changelog
v1.0.6 (2026-07-04)
π Fixed:
ModuleNotFoundErrorwhen running the server β changed absolute import to relative import inget_problem.pyβ Verified: All 8 tools tested and working (get_user, compare_user, get_problemlist, get_problem, get_practiceproblems, get_random_practice, get_upsolve, get_status)
π οΈ Installation & Configuration (No Keys Required!)
You don't need to clone or manually install anything! Just add this to your cline_mcp_settings.json or mcp.json:
{
"mcpServers": {
"cf-mcp-orange": {
"command": "uvx",
"args": ["cf-mcp-orange"]
}
}
}Available Tools
8 toolscompare_userB
Compare two Codeforces users side-by-side. Returns a detailed comparison of ratings, titles, contest count, and problem solving breakdown (difficulty & category).
Inputs: user_a (required), user_b (required). Returns: result
get_practiceproblemsA
Analyzes a user's solved problems to identify their weakest topics. Recommends up to 3 practice problems within +300 rating of their current level.
Inputs: username (required). Returns: result
get_problemA
Fetch the full problem statement, rating, and topics for a specific Codeforces problem. Provide the contest ID and the problem index (e.g., contest_id=4, index='A').
Inputs: index (required), contest_id (required). Returns: result
get_problemlistA
Search the entire Codeforces problemset and return up to 10 problems.
Parameters:
min_rating: Minimum difficulty rating (e.g., 800)
max_rating: Maximum difficulty rating (e.g., 2400)
topics: List of tags to filter by (e.g., ["dp", "greedy"])
sort_by: "recent" (newest first) or "oldest" (oldest first)
match_type: "OR" (match any topic) or "AND" (must match ALL topics)
Returns 10 problems with names, ratings, tags, and direct links.
Inputs: topics, sort_by, match_type, max_rating, +1 more. Returns: result
get_random_practiceA
Ignore weaknesses and recommend a single, completely random Codeforces problem within +/- 300 rating of the user's current rating. Great for a fresh, challenging surprise!
Inputs: username (required). Returns: result
get_statusA
Fetch the last 1000 submissions of a user. Provides a summary of their AC/WA/TLE count, and details of their 20 most recent submissions. Great for debugging how a user is performing on their current attempts.
Inputs: username (required). Returns: result
get_upsolveB
Analyze the user's last 10 rated Codeforces contests. Recommends up to 2 unsolved problems per contest if:
The problem is unrated, OR
The problem is rated within +/- 300 of the user's current rating. This is perfect for targeted practice to improve rank!
Inputs: username (required). Returns: result
get_userA
Fetches a complete Codeforces profile in one call, returning:
Current rating, max rating, title, and max title.
Number of total contests given.
Recent 5 contest rating changes (delta).
Total distinct problems solved.
Breakdown of solved problems by difficulty.
Top 10 problem categories solved.
Inputs: username (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: user comparison, profile retrieval, submission history, problem details, problem search, and three distinct practice recommendation strategies (weakness-based, random, contest-upsolve). Descriptions are detailed enough to prevent confusion.
All tools follow verb_noun pattern in snake_case, with seven starting with 'get_' and one starting with 'compare_'. This slight inconsistency is minor but noticeable.
Eight tools cover the core needs for a Codeforces practice assistant without being overwhelming. Each tool serves a necessary function, and the count feels well-scoped.
The set covers user profiles, submissions, problem search, and multiple practice recommendations. Missing features like contest listing or editorial access are minor omissions given the focus on individual practice.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.755 npm44MIT
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server for GitHub and competitive programming (Codeforces) that enables AI assistants to fetch user profiles, repository stats, contest history, and personalized problem recommendations.MIT
- FlicenseAqualityCmaintenanceEnables coding agents to discover unsolved Codeforces practice problems, analyze tag performance, and inspect submissions, profiles, rating history, and upcoming contests through MCP-compatible clients.6-
- FlicenseNot gradedqualityCmaintenanceEnables analyzing Codeforces activity through local MCP tools, including weekly practice summaries, problem recommendations, user comparisons, weak-topic detection, contest tracking, and rating progress.-