Back to Home
labki-org icon

mw-mcp-server

Verified Safe

by labki-org

Overview

Integrates MediaWiki with large language models to provide semantic search, conversational AI, and structured wiki data access through LLM-callable tools.

Installation

Run Command
docker compose up -d

Environment Variables

  • OPENAI_API_KEY
  • WIKI_CREDS
  • DB_PASSWORD
  • ADMIN_API_KEY

Security Notes

The server employs robust security practices including: bidirectional JWT authentication with strong validation (scopes, issuers, audiences, `wiki_id`), Pydantic models for strict input/output validation (e.g., `extra="forbid"`), explicit tool dispatching with allow-listing, and safeguards against path traversal. SQLAlchemy ORM is used for database interactions mitigating common SQL injection risks. A global exception handler prevents sensitive information leakage. The primary security dependency lies in the MediaWiki Semantic MediaWiki (SMW) extension's handling of raw `#ask` queries forwarded by the server, though the server adds validation for known properties/categories to mitigate LLM hallucinations. No direct `eval` or `exec` on user input is observed.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2026-01-18

Tags

MediaWikiLLMSemantic SearchChatbotAI Agent