Skip to main content
Glama

cf-mcp-orange πŸš€

PyPI version

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)

  1. get_user – Fetch a detailed profile (rating, max rating, last 5 contests, problem stats by difficulty, top 10 categories).

  2. compare_user – Side-by-side comparison of two Codeforces users.

  3. get_problemlist – Search the entire problemset by rating range, topic tags (AND/OR), and sorting.

  4. get_problem – Retrieve the full problem statement, rating, and tags for any specific contest/problem ID.

  5. get_practiceproblems – Identify a user's weakest core topics and recommend 3 targeted problems within +300 rating.

  6. get_random_practice – A completely random problem within +/- 300 of a user's current rating.

  7. get_upsolve – Analyzes a user's last 10 contests and recommends unsolved problems within their rating range.

  8. 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: ModuleNotFoundError when running the server β€” changed absolute import to relative import in get_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 tools
compare_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

    A3.9/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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
    • F
      license
      A
      quality
      C
      maintenance
      Enables 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
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables analyzing Codeforces activity through local MCP tools, including weekly practice summaries, problem recommendations, user comparisons, weak-topic detection, contest tracking, and rating progress.
      -