Get the FREE Ultimate OpenClaw Setup Guide →

codeforces-polygon

MCP server from csh1668/codeforces-polygon-mcp-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio csh1668-codeforces-polygon-mcp-server node server.js \
  --env PORT="the port the MCP server will listen on (default 3000)" \
  --env CF_POLYGON_TOKEN="Codeforces Polygon API token (if required)"

How to use

This MCP server provides an interface to interact with Codeforces Polygon tasks and related data through the MCP protocol. It exposes endpoints and tools to fetch problem metadata, polygon configurations, and submission-related hooks in a standardized way so you can integrate Codeforces Polygon workflows into your automation and tooling. Use the MCP client to query problem statements, retrieve polygon test cases, validate solutions, and track submission statuses via the server's endpoints. If you are building an automation pipeline for CF Polygon rounds, you can leverage the server to fetch round tasks, generate or verify tests, and push results back into your workflow.

How to install

Prerequisites:

  • Node.js (LTS) and npm installed
  • Access to the repository containing this MCP server
  1. Clone the repository: git clone https://github.com/your-org/codeforces-polygon-mcp-server.git cd codeforces-polygon-mcp-server

  2. Install dependencies: npm install

  3. Configure environment (see additional notes below). By default the server exposes port 3000. You may override via PORT env var.

  4. Run the server: npm start

    or node server.js

  5. Verify the MCP endpoint is reachable, e.g.: curl http://localhost:3000/mcp/health

Additional notes

Notes and tips:

  • Environment variables: PORT to set listening port; CF_POLYGON_TOKEN to authenticate with Polygon if required by the server; any other API keys should be kept secret and loaded from a secure env source.
  • If the server requires a polygon token, make sure the token has appropriate permissions for the tasks you intend to access.
  • The MCP API endpoints may include operations such as listing problems, fetching polygon configurations, validating solutions, and retrieving submission statuses. Check the server's route documentation or open the source to confirm exact endpoints.
  • For development, you can enable verbose logging by setting LOG_LEVEL=debug or similar, depending on the server implementation.
  • If you update configuration or dependencies, rerun npm install to ensure all modules are up to date.
Sponsor this space

Reach thousands of developers