mcp-oi-wiki
让大模型拥有 OI-Wiki 的加成!

How does it work?
使用 Deepseek-V3 对 OI-wiki 当前的 462 个页面做摘要,将摘要嵌入为语义向量,建立向量数据库。
查询时,找到数据库中最接近的向量,返回对应的 wiki markdown。
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
- milvus-io/milvus-lite: A lightweight version of Milvus 向量数据库
- OI-wiki/OI-wiki: :star2: Wiki of OI / ICPC for everyone. (某大型游戏线上攻略,内含炫酷算术魔法) OI-wiki
- qdrant/fastembed: Fast, Accurate, Lightweight Python library to make State of the Art Embedding CPU 向量嵌入
MCP OI-Wiki
Project Details
- ShwStone/mcp-oi-wiki
- Last Updated: 5/1/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server for analyzing GitLab repositories and performing security assessments.
A PubMed MCP server.
Connect APIs, remarkably fast. Free for developers.
This template provides a streamlined foundation for building Model Context Protocol (MCP) servers in Python. It's designed to...
An MCP server implementing the think tool for Claude
MCP implementation to generate content using models hosted on Replicate
Browser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
A MCP Server for the RAG Web Browser Actor
A user-friendly, multi-platform GUI for managing and running CrewAI agents and tasks. Supports Conda and virtual environments, no...
MCP server for enabling LLM applications to perform deep research via the MCP protocol





