{"id":22983,"library":"wikipedia-mcp-server","title":"Wikipedia MCP Server","description":"An MCP-compatible server that exposes Wikipedia search and article retrieval tools for AI agents and clients. Current stable version is 0.0.2. This package is maintained and updated in sync with the Model Context Protocol specification. Unlike direct Wikipedia API wrappers, it provides structured tools for AI workflows, supporting multiple languages and random article fetching. It is meant to be used as an MCP server, typically launched via npx, and requires compatible MCP clients.","status":"active","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/hatsu38/wikipedia-mcp-server","tags":["javascript","mcp","wikipedia","server"],"install":[{"cmd":"npm install wikipedia-mcp-server","lang":"bash","label":"npm"},{"cmd":"yarn add wikipedia-mcp-server","lang":"bash","label":"yarn"},{"cmd":"pnpm add wikipedia-mcp-server","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package likely exports a class for programmatic use, but the primary usage is via MCP client configuration.","wrong":"const WikipediaMCPServer = require('wikipedia-mcp-server')","symbol":"WikipediaMCPServer","correct":"import { WikipediaMCPServer } from 'wikipedia-mcp-server'"},{"note":"If the package provides a factory function, this is the correct ESM import.","wrong":"const createServer = require('wikipedia-mcp-server').createServer","symbol":"createServer","correct":"import { createServer } from 'wikipedia-mcp-server'"},{"note":"Default import is used if the package exports a single main class.","wrong":"import { default } from 'wikipedia-mcp-server'","symbol":"default","correct":"import WikipediaMCPServer from 'wikipedia-mcp-server'"}],"quickstart":{"code":"// Add to your MCP client config (e.g., Cursor, Claude Desktop)\n{\n  \"mcpServers\": {\n    \"wikipedia\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"wikipedia-mcp-server\"\n      ]\n    }\n  }\n}\n\n// Example: search for articles about 'TypeScript' in English\n// The client will expose a tool 'search_wikipedia' with parameters: query, lang, limit","lang":"javascript","description":"Shows how to configure the MCP server in an MCP client and use the search_wikipedia tool."},"warnings":[{"fix":"Always specify lang parameter when calling tools if you want non-Japanese results.","message":"Default language is Japanese ('ja'). Many users expect English and forget to set lang='en'.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Pin the exact version in your package.json or MCP config to avoid unexpected changes.","message":"The package is very early (v0.0.2). API breaking changes may occur without major version bump.","severity":"deprecated","affected_versions":"<1.0.0"},{"fix":"Ensure Node.js v18 or later is installed.","message":"The server requires a modern Node.js runtime (>=18) for network fetch and ESM support.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Consider installing the package globally or pinning the version via npm install -g wikipedia-mcp-server@0.0.2.","message":"The server uses npx -y which auto-installs the latest version. This may lead to unexpected updates.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Use a client compatible with the Model Context Protocol (e.g., Claude Desktop, Cursor IDE).","message":"If an MCP client does not support the tools protocol, the server will not work.","severity":"breaking","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npx wikipedia-mcp-server' with -y flag, or install globally using 'npm install -g wikipedia-mcp-server'.","cause":"The package is not installed or npx cannot resolve it.","error":"Error: Cannot find module 'wikipedia-mcp-server'"},{"fix":"Upgrade to Node.js 18 or later, or use a fetch polyfill like node-fetch.","cause":"The environment lacks global fetch (Node.js <18).","error":"TypeError: fetch is not defined"},{"fix":"Check the server configuration and ensure the server is running. Verify the 'command' and 'args' in your MCP config.","cause":"The MCP client may not have loaded the server properly.","error":"Tool 'search_wikipedia' not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}