Codeforces

v0.2.1
io.github.pipeworx-io/codeforces Checked 1 day ago Published 1 month ago

Codeforces MCP — public read API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

user

User profile(s) by handle (up to 10000 semicolon-separated).

ParameterTypeDescription
handles *array1-10000 handles

user_rating

Full rating history for a user.

ParameterTypeDescription
handle *string

user_status

Codeforces competitive-programming API — the submission history of one Codeforces handle, newest first, paged with from/count. Each submission carries the contest and problem it targeted, the judge verdict (OK, WRONG_ANSWER, TIME_LIMIT_EXCEEDED), programming language, runtime and memory consumed. Answers which problems a Codeforces user attempted lately and whether they passed.

ParameterTypeDescription
handle *string
countnumber1-10000 (default 50)
fromnumber1-based start (default 1)

contest_list

All contests. Pass gym=true for gym contests.

ParameterTypeDescription
gymboolean

contest_standings

Codeforces competitive-programming API — the final scoreboard of one Codeforces round: every participant's rank, handle, total points, penalty, hack counts and per-problem results, plus the contest metadata and its problem list with difficulty ratings and tags. Answers who won a Codeforces contest, where a given handle placed, and which problems the round contained.

ParameterTypeDescription
contest_id *numberNon-gym contest id, e.g. 1000. Gym contests need an authenticated Codeforces API key, which this keyless pack does not hold.
countnumber1-1000 rows to return (default 100)
fromnumber1-based rank to start at (default 1)
handlesarrayKeep only rows containing these handles. Applied by this pack after fetching, because Codeforces rejects the upstream filter on public standings.

problemset

Problemset + per-problem submission counts. Optional tag filter.

ParameterTypeDescription
problemset_namestringCustom problemset (rarely used).
tagsarraye.g. ["dp","graphs"]

recent_actions

Codeforces competitive-programming site — the global recent-actions feed, the newest blog entries and comments posted anywhere on Codeforces. Each action returns its timestamp plus the blog entry (title, author handle, rating) or comment text it refers to. Answers what the Codeforces community is posting and discussing right now.

ParameterTypeDescription
max_countnumber1-100 (default 30)

blog_entry_view

Full blog entry by id.

ParameterTypeDescription
blog_id *number