tibiawiki_en_mcp
Click on "Install 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., "@tibiawiki_en_mcpfind creatures that drop demonic essence"
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.
Tibia MCP Server
A tool that downloads, parses, and indexes all content from TibiaWiki — the wiki for the MMORPG Tibia — and serves it via an MCP (Model Context Protocol) server for AI agents.
Quick Start
The fastest way to get everything running is with Claude Code (Anthropic's official CLI). This project includes a custom skill /start that automates the entire setup:
Open a terminal at the project root
Start Claude Code:
claudeRun the skill:
/startThe skill will automatically:
Check all prerequisites (Docker, Docker Compose, free ports, etc.)
Create the persistent data directory for PostgreSQL
Start the database, run the crawler, and launch the MCP server
Display the ready-to-use MCP URL
MCP URL:
http://localhost:8000/sse
Prerequisites
Claude Code installed (
npm install -g @anthropic-ai/claude-code)Docker and Docker Compose V2
Ports 5432 (PostgreSQL) and 8000 (MCP) available
Persistent Data
PostgreSQL data is stored in ./data/postgres/ on the host machine. This means restarting containers does not lose data — the crawler doesn't need to re-download everything.
Useful Commands
# Watch logs in real-time
docker compose logs -f
# Check service status
docker compose ps
# Stop everything (data preserved)
docker compose down
# Full reset (deletes data)
docker compose down -v && rm -rf ./data/postgres && docker compose up --build -dMCP Configuration for Claude Desktop
Add to your MCP configuration file:
{
"mcpServers": {
"tibiawiki": {
"url": "http://localhost:8000/sse"
}
}
}Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client.
Related MCP server: mcp-web-calc
What It Does
Downloads all TibiaWiki pages via the MediaWiki API (raw wikitext)
Parses structured infoboxes from 20 entity types (creatures, items, spells, NPCs, quests, etc.)
Stores normalized data in PostgreSQL
Extracts map coordinates and generates tags/summaries per entity
Serves the data via MCP with 19 tools optimized for AI agent queries
Stack
Python 3.12
PostgreSQL 16 — relational storage with materialized views
FastMCP — MCP server for AI agent integration
Docker + Docker Compose — containerized environment
psycopg2, requests, python-dotenv
pgvector + llama-index (optional) — semantic search via embeddings
Project Structure
src/
main.py # Orchestrator (runs all 6 phases)
mcp_server.py # MCP server with 19 tools
tagger.py # Tag and summary generation
api/ # HTTP client with rate limiting and retry
parser/ # Parsers by infobox type (20 types)
db/ # Connection, migrations, and upserts
migrations/ # 28 numbered SQL files
tests/ # pytest + wikitext fixtures
web/ # Next.js landing pageHow It Works
src/main.py runs 6 sequential phases:
Phase 0 → Migrations Apply SQL migrations to the database
Phase 1 → Download Download wikitext from all pages (batches of 50)
Phase 2 → Parse & Import Extract infoboxes and upsert into normalized tables
Phase 3 → Positions Extract {{mapa|X,Y,Z}} coordinates to the positions table
Phase 4 → Tags & Summaries Generate tags (e.g. "boss", "immune_fire") and text summaries
Phase 5 → Materialized Views Refresh creature_drops, npc_trades, quest_bosses, etc.Supported Entities
Entity | Table | Infobox |
Creatures |
|
|
Items |
|
|
Spells |
|
|
NPCs |
|
|
Quests |
|
|
Achievements |
|
|
Mounts |
|
|
Outfits |
|
|
Imbuements |
|
|
Hunts |
|
|
Books |
|
|
Buildings |
|
|
Worlds |
|
|
Runes |
|
|
World Quests |
|
|
World Changes |
|
|
Familiars |
|
|
Tasks |
|
|
Updates |
|
|
Fansites |
|
|
MCP Server
src/mcp_server.py exposes 19 tools for AI agents to query the database. The suggested usage pattern is:
discover → filter → detailTools
Category | Tool | Description |
Discovery |
| Database schema, row counts, and column details |
Discovery |
| Browse entities by type with pagination |
Search |
| Full-text search across all entity types |
Search |
| Filter by auto-generated tags |
Search |
| Natural language AI-powered search |
Creatures |
| Complete profile: stats, loot, hunts, quests |
Creatures |
| Find creatures weak to a specific element |
Creatures |
| Side-by-side stat comparison |
Items |
| Drops, NPC shops, and quest rewards |
Items |
| NPCs that buy the item and their prices |
Items |
| Equipment for a class and body slot |
Hunting |
| Best hunts by level and vocation |
Hunting |
| Estimated gold per kill |
Map |
| Generate TibiaWiki map URLs |
Map |
| Find entities near coordinates |
Map |
| Entities near a named location |
Advanced |
| Top items by price, strongest creatures, etc. |
Advanced |
| Custom read-only SQL queries |
Advanced |
| Full details for any single entity |
Usage Examples
Real questions an AI agent can answer using this MCP:
Equipment recommendation by vocation and level
"What's the recommended set for a Knight level 400?"
The agent uses items_for_vocation("knight") filtering by each slot (helmet, armor, legs, boots, shield, ring) and cross-references with level to build the best combination:
Slot | Item | Armor/Def | Resistances | Skill Boost |
Helmet | Spiritthorn Helmet | 12 arm | Physical +6%, Energy +10% | Sword/Club/Axe +3 |
Armor | Spiritthorn Armor | 20 arm | Physical +13% | Sword/Club/Axe +4 |
Legs | Falcon Greaves | 10 arm | Physical +7%, Ice +7% | Melee +3 |
Boots | Pair of Soulwalkers | 4 arm | Physical +7%, Fire +5% | Melee +1, Speed +15 |
Shield | Soulbastion | 42 def | Physical +10%, Death +10% | — |
Ring | Charged Spiritthorn Ring | 2 arm | Physical +8%, All Elements +4% | Melee +3 |
Complete quest guide
"How do I complete the Desert Quest?"
The agent uses search("desert quest", entity_type="quests") followed by get_entity("quests", "The Desert Dungeon Quest") to return the full spoiler: preparation, required items, step-by-step path, sacrifice room positioning, and rewards.
NPC locations
"Where are the guards for the Inquisition Quest?"
The agent fetches each NPC with get_entity("npcs", "Walter, The Guard") etc., returning exact coordinates and TibiaWiki map links:
NPC | Coordinates | Link |
Henricus | 32316, 32268, z8 | |
Walter, The Guard | 32341, 32278, z7 | |
Tim, The Guard | 32424, 32226, z6 |
More examples
"Creatures weak to fire?" →
creature_weakness("fire")"Where does Falcon Longsword drop?" →
where_to_get_item("Falcon Longsword")"Best hunts for Paladin level 250?" →
recommend_hunt(250, "paladin")"Most expensive items?" →
rank_entities("items", "npc_value")"Dragon Lord vs Frost Dragon?" →
compare_creatures("Dragon Lord", "Frost Dragon")"Where to sell Demon Helmet?" →
where_to_sell_item("Demon Helmet")"Profit per kill at Hydra?" →
profit_analysis("Hydra")
Local Setup (without Docker)
# 1. Copy and edit the configuration file
cp .env.example .env
# 2. Install dependencies
pip install -r requirements.txt
# 3. Run the downloader
python -m src.main
# 4. Start the MCP server
python -m src.mcp_serverTests
pytest tests/Fixtures in tests/fixtures/ contain real wikitext samples for testing parsers.
Semantic Search (optional)
To enable semantic search with embeddings:
Install the optional dependencies in
requirements.txt(uncomment thellama-indexlines)Make sure the
pgvectorextension is enabled in PostgreSQL (migration027_enable_pgvector.sql)Run
python -m src.indexerafter the download
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Patryz/tibiawiki_en_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server