Skip to main content

Codeforces MCP Server

A Model Context Protocol (MCP) server that provides seamless access to the Codeforces API. This server allows you to interact with Codeforces contests, user data, submissions, and ratings through a standardized MCP interface.

Features

  • Contest Management: Get contest lists, standings, and rating changes
  • User Information: Retrieve user profiles, rating history, and submissions
  • Submission Tracking: Access recent submissions and contest-specific submissions
  • Rating Data: Get user rating changes and rated user lists
  • Async Support: Built with async/await for optimal performance

Available Tools

Contest Tools

  • get_contest_list - Get list of contests (with optional gym and group filters)
  • get_contest_rating_changes - Get rating changes after a specific contest
  • get_contest_standings - Get contest standings with customizable filters
  • get_contest_status - Get submissions for a specific contest

User Tools

  • get_user_info - Get detailed user information
  • get_user_rating - Get user's complete rating history
  • get_user_submissions - Get user's submission history
  • get_rated_users - Get list of all rated users

General Tools

  • get_recent_submissions - Get recent submissions across the platform

Project Structure

.
├── Dockerfile              # Docker container configuration 
├── LICENSE                 
├── README.md              
└── src/                   
    ├── codeforces_mcp.py  # Main MCP server implementation with Codeforces API integration.
    └── requirements.txt   # Python dependencies.

Installation

Docker (Recommended)

  1. Pull the image from Docker Hub:
docker pull mohamed2x/codeforces-mcp
  1. Run the container:
docker run -i --rm mohamed2x/codeforces-mcp:latest

Configuration

The server runs on stdio transport by default and connects to the official Codeforces API at https://codeforces.com/api.

Dependencies

  • fastmcp - MCP server framework
  • httpx - Async HTTP client
  • urllib.parse - URL parameter encoding

Metadata

Release files for iflow-mcp_mohamed-hanfy_codeforces-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_mohamed-hanfy_codeforces-mcp 0.1.1
File Size Uploaded
iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_mohamed-hanfy_codeforces-mcp 0.1.1
File Interpreter ABI Platform
iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1.tar.gz

Download URL iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f32dbccd306c214397ff04add466747dec9e9493e80c8c1e6794a5de5f242a16
BLAKE2b-256 checksum
How to use checksums
1d92caeaad15ce406bef5ba0409425d9af3037c7d6b8b9fa591b87410b642ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1-py3-none-any.whl

Download URL iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baf85d006eb5e03df6a97817976c03d1bec4ba2b737c68b08da171d8331a3e1a
BLAKE2b-256 checksum
How to use checksums
662f62fc18d6f6433673aa9d30f722da68bca0bb988c97eea573e9fd058aa44f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page