MCP OI-Wiki
Processes and returns OI-Wiki content in Markdown format, allowing AI to reference competitive programming documentation and algorithms directly
Utilizes Milvus Lite as a vector database to store and retrieve semantic vectors of OI-Wiki content, enabling semantic search capabilities for competitive programming knowledge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP OI-Wiki explain how to implement Dijkstra's algorithm for shortest path problems"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-oi-wiki
让大模型拥有 OI-Wiki 的加成!

How does it work?
使用 Deepseek-V3 对 OI-wiki 当前的 462 个页面做摘要,将摘要嵌入为语义向量,建立向量数据库。
查询时,找到数据库中最接近的向量,返回对应的 wiki markdown。
Related MCP server: Claude Context MCP
Usage
确保你拥有 uv。
首先,下载本仓库:
cd <path of MCP servers>
git clone --recurse-submodules https://github.com/ShwStone/mcp-oi-wiki.git然后打开你的 MCP 配置文件(mcpo 或 claude):
{
"mcpServers": {
"oi-wiki": {
"command": "uv",
"args": [
"--directory",
"<path of MCP servers>/mcp-oi-wiki",
"run",
"python",
"main.py"
]
}
}
}Update
可以生成自己的 db/oi-wiki.db。
将 Silicon flow API key 放在 api.key 文件中。
然后运行:
uv run script/request.py在批量推理页面下载摘要结果到 result.jsonl。
最后运行:
uv run script/gendb.py生成新的 db/oi-wiki.db。
Thanks
Available Tools
1 toolsearchB
OI Wiki 致力于成为一个免费开放且持续更新的编程竞赛知识整合站点,大家可以在这里获取与竞赛相关的、有趣又实用的知识。本工具能够在 OI-wiki 中搜索相关的知识点。
query 应该比较详细,与要实现的算法/目标相关。比如:“求一个图的最小生成树”,“维护区间加/区间求和”
@ param query 描述要实现的需求
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clearly defined and distinct purpose: searching the OI Wiki for programming competition knowledge.
The single tool name 'search' follows a simple, clear verb pattern. Since there is only one tool, consistency is inherently perfect with no deviations or mixed conventions to evaluate.
A single tool is too few for a server that appears to cover a broad domain like a programming competition knowledge base. The scope suggests needs for browsing, filtering, or accessing specific content beyond just search, making the toolset feel thin and underdeveloped.
The tool surface is severely incomplete for the domain. While search is useful, there are obvious gaps such as listing topics, getting detailed articles, or navigating categories, which limits an agent's ability to fully interact with the wiki's content.
Maintenance
Related MCP Connectors
Token-efficient search for coding agents over public and private documentation.
Persistent memory and knowledge graph for AI assistants — keyword + vector + graph search.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.65MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to index and search codebases using semantic search powered by multiple embedding providers (OpenAI, VoyageAI, Gemini, Ollama) and vector database storage.MIT
- AlicenseNot gradedqualityBmaintenanceFour-layer hybrid search and knowledge graph for AI coding assistants: BM25 + vector embeddings + RAPTOR directory summaries + graph expansion fused into a single MCP tool.366 npm22Apache 2.0
- FlicenseBqualityDmaintenanceProvides 23 modular tools for competitive programming, including problem analysis, algorithm planning, code generation, verification, testing, code review, and learning assistance.23-