Skip to main content

A Model Context Protocol (MCP) server that provides seamless access to the Codeforces API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f32dbccd306c214397ff04add466747dec9e9493e80c8c1e6794a5de5f242a16
MD5 b95e3d5388c81b46d52fa203145f904a
BLAKE2b-256 1d92caeaad15ce406bef5ba0409425d9af3037c7d6b8b9fa591b87410b642ce1

See more details on using hashes here.

File details

Details for the file iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for iflow_mcp_mohamed_hanfy_codeforces_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 baf85d006eb5e03df6a97817976c03d1bec4ba2b737c68b08da171d8331a3e1a
MD5 9e8c49fb4e5832076e7ec35018ff135b
BLAKE2b-256 662f62fc18d6f6433673aa9d30f722da68bca0bb988c97eea573e9fd058aa44f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page