codeforces-mcp
mcp server for codeforces
Documentation
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-mcp2. Run the container:
docker run -i --rm mohamed2x/codeforces-mcp:latestConfiguration
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
Frequently asked questions
What is codeforces-mcp?
codeforces-mcp is mcp server for codeforces
How do I install codeforces-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is codeforces-mcp open source?
Yes — it is hosted on GitHub at https://github.com/mohamed-hanfy/codeforces-mcp and has 6 stars.
Related MCP tools
Damn Vulnerable MCP Server Python-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases Python-based implementation. Trusted by 900+ developers.
Query MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning...
Model Context Protocol with Neo4j Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers. Trusted by 700+ developers.
An MCP server that provides control over Android devices via adb Python-based implementation. Trusted by 500+ developers.
A Model Context Protocol (MCP) server for PostgreSQL databases with enhanced capabilities for AI agents. Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP