Registry / llm-agents / wikipedia-mcp-server

wikipedia-mcp-server

JSON →
library1.0.1jsnpmunverified

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.

npm install wikipedia-mcp-server
INSTALL
IMPORT
SIG · WIKIPEDIA-MCP-SERV
W
wikipedia-mcp-server
llm-agentsjavascriptv1.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WikipediaMCPServer
import { WikipediaMCPServer } from 'wikipedia-mcp-server'
const WikipediaMCPServer = require('wikipedia-mcp-server')
The package likely exports a class for programmatic use, but the primary usage is via MCP client configuration.
createServer
import { createServer } from 'wikipedia-mcp-server'
const createServer = require('wikipedia-mcp-server').createServer
If the package provides a factory function, this is the correct ESM import.
default
import WikipediaMCPServer from 'wikipedia-mcp-server'
import { default } from 'wikipedia-mcp-server'
Default import is used if the package exports a single main class.

Shows how to configure the MCP server in an MCP client and use the search_wikipedia tool.

// Add to your MCP client config (e.g., Cursor, Claude Desktop) { "mcpServers": { "wikipedia": { "command": "npx", "args": [ "-y", "wikipedia-mcp-server" ] } } } // Example: search for articles about 'TypeScript' in English // The client will expose a tool 'search_wikipedia' with parameters: query, lang, limit
Debug
Known issues
gotchaDefault language is Japanese ('ja'). Many users expect English and forget to set lang='en'.
fix
Always specify lang parameter when calling tools if you want non-Japanese results.
affects: >=0.0.1
deprecatedThe package is very early (v0.0.2). API breaking changes may occur without major version bump.
fix
Pin the exact version in your package.json or MCP config to avoid unexpected changes.
affects: <1.0.0
breakingThe server requires a modern Node.js runtime (>=18) for network fetch and ESM support.
fix
Ensure Node.js v18 or later is installed.
affects: >=0.0.1
gotchaThe server uses npx -y which auto-installs the latest version. This may lead to unexpected updates.
fix
Consider installing the package globally or pinning the version via npm install -g wikipedia-mcp-server@0.0.2.
affects: >=0.0.1
breakingIf an MCP client does not support the tools protocol, the server will not work.
fix
Use a client compatible with the Model Context Protocol (e.g., Claude Desktop, Cursor IDE).
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'wikipedia-mcp-server'
The package is not installed or npx cannot resolve it.
fix
Run 'npx wikipedia-mcp-server' with -y flag, or install globally using 'npm install -g wikipedia-mcp-server'.
TypeError: fetch is not defined
The environment lacks global fetch (Node.js <18).
fix
Upgrade to Node.js 18 or later, or use a fetch polyfill like node-fetch.
Tool 'search_wikipedia' not found
The MCP client may not have loaded the server properly.
fix
Check the server configuration and ensure the server is running. Verify the 'command' and 'args' in your MCP config.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
60 hits · last 30 days
node
54
Perplexity
1
OpenAI (training)
1
Resources
wikipedia-mcp-server — npm install wikipedia-mcp-server · libregistry