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 contestget_contest_standings- Get contest standings with customizable filtersget_contest_status- Get submissions for a specific contest
User Tools
get_user_info- Get detailed user informationget_user_rating- Get user's complete rating historyget_user_submissions- Get user's submission historyget_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)
- Pull the image from Docker Hub:
docker pull mohamed2x/codeforces-mcp
- 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 frameworkhttpx- Async HTTP clienturllib.parse- URL parameter encoding
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f32dbccd306c214397ff04add466747dec9e9493e80c8c1e6794a5de5f242a16
|
|
| MD5 |
b95e3d5388c81b46d52fa203145f904a
|
|
| BLAKE2b-256 |
1d92caeaad15ce406bef5ba0409425d9af3037c7d6b8b9fa591b87410b642ce1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baf85d006eb5e03df6a97817976c03d1bec4ba2b737c68b08da171d8331a3e1a
|
|
| MD5 |
9e8c49fb4e5832076e7ec35018ff135b
|
|
| BLAKE2b-256 |
662f62fc18d6f6433673aa9d30f722da68bca0bb988c97eea573e9fd058aa44f
|