MediaWiki MCP Server
Permite que tu agente de IA lea, busque y edite páginas en cualquier wiki de MediaWiki, incluida Wikipedia.
147 estrellas en GitHubpor Professional WikiLicencia MITActualizado hace 18 días
Cómo instalar
Este MCP es local: se ejecuta en tu computadora.
Funciona en las apps instaladas en tu PC (Claude Desktop, Claude Code, Cursor, VS Code…). Elige tu app:
Pega en la terminal:
claude mcp add mediawiki -- npx -y @professional-wiki/mediawiki-mcp-server
Qué completar
| Nombre | Qué es | Obligatorio |
|---|---|---|
CONFIG | Path to your configuration file | No |
MCP_ALLOW_STATIC_FALLBACK | Set to 'true' to allow HTTP startup when config.json has static credentials. Otherwise the server refuses to start, preventing silent shared-identity fallback for unauthenticated requests. | No |
MCP_CONTENT_MAX_BYTES | Byte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out. | No |
MCP_FILE_DATA_MAX_BYTES | Hard cap on the base64-encoded size of a get-file-data response. A transport/safety backstop; callers tune actual size with the tool's width parameter. Over-cap responses error rather than truncate. | No |
MCP_LOG_LEVEL | Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call. | No |
MCP_MAX_REQUEST_BODY | Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb. | No |
MCP_METRICS | Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport. | No |
MCP_OAUTH_ALLOWED_REDIRECTS | Additional allowed redirect URIs for hosted-proxy client registration: comma-separated exact URIs (which must include a host) and https prefix patterns ending in /*. Loopback, claude.ai, and verified first-party clients (ChatGPT, Cursor, VS Code) are always allowed; unset means no additional clients. | No |
MCP_OAUTH_CIMD_ALLOWED_HOSTS | Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted. | No |
MCP_OAUTH_CREDENTIALS_FILE | Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows. | No |
MCP_OAUTH_NO_BROWSER | Set to '1' to skip launching a browser during the OAuth dance and log the auth URL to stderr instead. Useful in headless environments and CI. | No |
MCP_OAUTH_PROXY_STORE_FILE | Path to the hosted OAuth proxy's encrypted state file, which lets sign-ins survive restarts. Default: proxy-store.enc under the mediawiki-mcp config dir; /app/data/proxy-store.enc in the Docker image. | No |
MCP_PUBLIC_URL | Override the request-derived public URL used in the protected-resource discovery doc and WWW-Authenticate header. Set this when running behind a proxy that rewrites the request Host. | No |
MCP_SHUTDOWN_GRACE_MS | Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000. | No |
MCP_TRANSPORT | Type of MCP server transport | No |
MCP_UPLOAD_MAX_BYTES | Memory cap on the server-side fetch used by upload-file-from-url and update-file-from-url. Files larger than this are routed to the wiki's own copy-upload instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize. | No |
MCP_USER_AGENT | Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/<version> (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server). If you set it, give a name and an email or URL, e.g. 'ExampleBot/1.0 (bot@example.org)'. | No |
PORT | Port used for StreamableHTTP transport | No |
¡Listo! Ahora pruébalo
Reinicia la app y pega uno de estos pedidos en el chat:
Busca en el wiki páginas sobre nuestro proceso de lanzamiento.
Muestra las últimas 10 ediciones de la página Instalación.
Qué es
Este servidor conecta tu agente de IA con cualquier wiki que use MediaWiki. El agente puede buscar y leer páginas, comparar revisiones, recorrer categorías y archivos y, cuando inicias sesión, crear, editar, mover y subir contenido. Puede trabajar con varios wikis y tiene herramientas adicionales para NeoWiki, Semantic MediaWiki, Cargo, Bucket y Wikibase.
Qué puede hacer
search-page: búsqueda de texto completo en un wikiget-page: obtiene una páginaget-page-history: lista las revisiones recientescompare-pages: compara dos versionesget-category-members: lista las páginas de una categoríacreate-page: crea una página (necesita inicio de sesión)update-page: edita una página (necesita inicio de sesión)upload-file: sube un archivo (necesita inicio de sesión)
Cuándo usarlo
- ›Cuando quieres que tu agente busque algo en un wiki.
- ›Cuando administras un wiki y quieres ayuda para editar o mover páginas.
- ›Cuando quieres comparar dos versiones de una página.
Qué necesitas
Skills que combinan
¿MCP o skill?
El MCP da las manos al agente. La skill enseña la forma correcta de usarlas. Juntos, el resultado es mejor y gasta menos tokens.
siyuanPermite que tu agente busque, lea, cree, edite y elimine notas en tu base de conocimiento SiYuan autoalojada, usando su API.mini-context-graphCrea una base de conocimiento persistente que combina un grafo de conocimiento con páginas de wiki generadas por IA. El conocimiento se acumula y se relaciona con el tiempo.llm-wikiAyuda a tu agente a crear una base de conocimiento personal o de equipo en Obsidian, añadiendo fuentes y manteniendo al día los enlaces, el índice y las notas.Preguntas frecuentes
¿Es gratis?
Sí. El paquete está en npm y el readme muestra una insignia de licencia de código abierto.
¿Necesito iniciar sesión?
No para leer wikis públicos. Las herramientas marcadas con un candado necesitan autenticación.
¿Puede trabajar con más de un wiki?
Sí. Cada herramienta acepta un argumento wiki opcional, y los wikis se listan en el archivo de configuración.
¿Puedo evitar que haga cambios?
Sí. Las herramientas de escritura se rechazan en un wiki con readOnly en true.
¿Qué extensiones son compatibles?
Las herramientas de NeoWiki, Semantic MediaWiki, Bucket, Cargo y Wikibase solo se registran en los wikis donde está instalada la extensión.
¿Lo hizo MediaWiki?
No. Lo hizo Professional Wiki.
Si no funciona
- ›Crea un config.json cuando uses un wiki privado, y define CONFIG con su ruta si está en otro lugar.
- ›Para OAuth en un servidor sin navegador, define MCP_OAUTH_NO_BROWSER=1 y abre la URL que aparece en el registro.
- ›Si las respuestas se cortan, sube el valor de MCP_CONTENT_MAX_BYTES.
5 skills nuevas por semana. 1 minuto de lectura.