luogu-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LUOGU_MCP_TOKEN | No | Optional token for authentication on private deployments. | |
| LUOGU_MCP_ALLOWED_ORIGINS | No | Comma-separated list of allowed origins for browser access. Default is none. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| luogu_search_problemsA | Search Luogu problems by keyword. Use this before fetching a problem when you only know a topic or partial title. |
| luogu_fetch_problemA | Fetch a Luogu problem statement, formats, samples, tags, difficulty, and source URL by pid. |
| luogu_resolve_problemA | Resolve a Luogu problem from a URL, problem id, or title fragment, then fetch the problem details. |
| luogu_find_related_problemsA | Find related Luogu practice problems by mixing topic/pain-point recommendations with live keyword search. |
| luogu_list_algorithm_topicsA | List canonical algorithm topics, aliases, and known Luogu tag ids used by the high-level topic search route. |
| luogu_find_topic_problemsA | Find Luogu practice problems for an algorithm topic using aliases, known Luogu tag ids, deduplication, and match reasons. |
| luogu_search_problem_setsB | Search Luogu training/problem sets by keyword. |
| luogu_fetch_problem_setA | Fetch a Luogu training/problem set and its problem summaries by id. |
| luogu_recommend_problemsA | Recommend seed Luogu problems from a topic or student pain point, with search hints for further exploration. |
| luogu_get_user_profileA | Fetch public Luogu user profile data by uid. |
| luogu_get_capabilitiesA | Report which LeetCode-style route capabilities are available, auth-required, or planned for Luogu. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools have distinct purposes, but luogu_find_related_problems and luogu_recommend_problems overlap in recommending problems, and luogu_fetch_problem vs luogu_resolve_problem serve similar fetching roles with different inputs, which may cause minor confusion.
All tools follow a consistent 'luogu_verb_noun' pattern using snake_case, with clear verb choices that describe the action (fetch, search, find, etc.). No mixing of conventions.
11 tools is within the ideal 3-15 range, covering problem retrieval, search, recommendation, problem sets, user profile, algorithm topics, and capabilities. The scope is well-balanced.
The tool set covers problem discovery, retrieval, and user profiles comprehensively, but lacks tools for submissions, authentication, or contest data. However, given the apparent focus on problem exploration, it is reasonably complete.