leekwars-mcp-encyclopedia
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., "@leekwars-mcp-encyclopedia search the encyclopedia for the Flame chip"
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.
Leekwars MCP Encyclopedia
A standalone, Leekwars-aware MCP server dedicated to encyclopedia search and retrieval.
Goal
This project exists to separate knowledge tools from the main Leekwars MCP server.
The main leekwars-mcp repository should focus on authenticated game actions, such as fetching leeks, running fights, managing AIs, buying items, and interacting with the Leekwars API.
This repository focuses only on read-only encyclopedia knowledge:
searching the Leekwars encyclopedia
retrieving encyclopedia pages by path
returning useful snippets and metadata for agents
exposing domain-aware tools for Leekwars concepts such as chips, weapons, effects, entities, and game mechanics
Related MCP server: openzim-mcp
Why a separate server?
The encyclopedia search stack may use Python-specific tooling such as bm25s. Keeping it in a separate repository avoids adding Python dependencies to the mostly TypeScript game-action server.
This split also creates a clearer MCP model:
Leekwars action server: authenticated, state-changing, game/API operations
Leekwars encyclopedia server: unauthenticated, read-only, knowledge retrieval
An MCP client or agent can connect to both servers when it needs both knowledge and actions.
Intended MCP tools
Initial tools could include:
search_encyclopedia(query, k?)— search the encyclopedia and return ranked Leekwars-aware resultsget_encyclopedia_page(path)— read a full encyclopedia page by pathlist_encyclopedia_pages()— list known encyclopedia documents
Future tools may become more domain-specific:
find_chip(name)find_weapon(name)find_effect(name)search_game_mechanics(query)
Design direction
The server should return structured, domain-aware results rather than generic text blobs. A search result should ideally include:
title
path
score
snippet
document/category metadata when available
Example shape:
{
"title": "Chip: Flame",
"path": "chips/flame.md",
"score": 12.34,
"snippet": "Flame deals fire damage...",
"kind": "chip"
}Setup
Primary workflow with uv:
uv sync
uv run leekwars-mcp-encyclopediaPlain venv + pip workflow:
python -m venv .venv
.venv/bin/pip install -e .
.venv/bin/leekwars-mcp-encyclopediaThe default command starts the stdio MCP server. The index is generated at startup if .cache/bm25/ is missing.
CLI
leekwars-mcp-encyclopedia
leekwars-mcp-encyclopedia serve
leekwars-mcp-encyclopedia index --rebuildVendored encyclopedia content
The server reads encyclopedia markdown only from:
vendor/encyclopedia/root/Generated search indexes live under .cache/bm25/ and are git-ignored.
Relationship with leekwars-mcp
This repository is intended to replace the encyclopedia-related tools currently living in leekwars-mcp, especially:
search_encyclopediaget_encyclopedia_page
Once this project exists, those tools can be removed from the action server or kept temporarily as deprecated compatibility wrappers.
Available Tools
2 toolsget_encyclopedia_pageA
Read a markdown encyclopedia page by path relative to the vendored encyclopedia root.
Inputs: path (required). Returns: result
search_encyclopediaB
Search the Leekwars encyclopedia with a query and return the top BM25 matches.
Inputs: query (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one retrieves a specific page by path, the other searches the encyclopedia. No overlap.
Both tools use snake_case and follow a consistent verb_noun pattern: 'get_encyclopedia_page' and 'search_encyclopedia'.
With only 2 tools, the server feels thin for an encyclopedia, but it covers basic read and search operations. Could be acceptable for a focused domain.
The set lacks tools for discovering pages (e.g., list or browse), which limits the agent's ability to navigate. Significant gaps remain.
Related MCP Connectors
KnowMan MCP server: search, ask, save and read your Knowledge Base from any MCP client.
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
Token-free MCP server for structured RevoGrid Core, Pro, and Enterprise knowledge retrieval.
Related MCP Servers
AlicenseBqualityNot gradedmaintenanceMCP Server for interacting with Old School RuneScape Wiki API and game data files, providing tools to search the OSRS Wiki and access game data definitions through the Model Context Protocol.1958 npm1-- AlicenseNot gradedqualityDmaintenanceMCP server for reading and searching ZIM archives, optimized for single-user deployments with a persistent Wikipedia archive.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for LeekWars game enabling AI management, fight operations, item handling, and real-time socket communication via authenticated session.-
- AlicenseNot gradedqualityBmaintenanceMCP server for searching and reading Wikipedia articles, including summaries, full text, targeted sections, nearby pages, and language editions.334 npm6Apache 2.0