Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LUOGU_MCP_TOKENNoOptional token for authentication on private deployments.
LUOGU_MCP_ALLOWED_ORIGINSNoComma-separated list of allowed origins for browser access. Default is none.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kaiserunix/luogu-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server