modelscope·@ShwStone/mcp-oi-wiki
通过利用OI-Wiki内容的向量搜索,增强大型语言模型的竞争编程知识,使模型能够检索相关的算法和技术。
Empower large models with the OI-Wiki boost!

We use Deepseek-V3 to generate summaries of the current 462 pages on OI-wiki, embed these summaries as semantic vectors, and establish a vector database.
During queries, the closest vector in the database is found, and the corresponding wiki markdown is returned.
Ensure you have uv.
First, download this repository:
cd <path of MCP servers> git clone --recurse-submodules https://github.com/ShwStone/mcp-oi-wiki.git
Then, open your MCP configuration file (mcpo or claude):
json { "mcpServers": { "oi-wiki": { "command": "uv", "args": [ "--directory", "<path of MCP servers>/mcp-oi-wiki", "run", "python", "main.py" ] } } }
You can generate your own db/oi-wiki.db.
Place your Silicon flow API key in the api.key file.
Then run:
sh uv run script/request.py
Download the summary results to result.jsonl from the batch inference page.
Finally, run:
sh uv run script/gendb.py
This will generate a new db/oi-wiki.db.