Wikipedia MCP Server logo

Wikipedia MCP Server

by scotthelm

An MCP server that provides tools for interacting with the Wikipedia API. It allows AI assistants to access Wikipedia content, search for articles, get historical events, and retrieve images.

View on GitHub

Last updated: N/A

What is Wikipedia MCP Server?

This server provides tools for interacting with the Wikipedia API through the Model Context Protocol (MCP). It enables AI assistants to access and utilize Wikipedia's vast knowledge base.

How to use Wikipedia MCP Server?

The server can be run directly using npx @shelm/wikipedia-mcp-server or integrated programmatically into other projects. It communicates over stdio and can be configured for use with Claude or other MCP-compatible assistants. An example client is provided to demonstrate how to interact with the server.

Key features of Wikipedia MCP Server

  • onThisDay: Get historical events that occurred on a specific date

  • findPage: Search for Wikipedia pages matching a query

  • getPage: Get content of a Wikipedia page by title

  • getImagesForPage: Get images from a Wikipedia page by title

Use cases of Wikipedia MCP Server

  • Providing historical context to AI conversations

  • Answering user questions with Wikipedia content

  • Retrieving relevant images for AI-generated content

  • Enhancing AI knowledge bases with up-to-date information

FAQ from Wikipedia MCP Server

What is MCP?

MCP stands for Model Context Protocol, a standard for AI assistants to interact with external tools and services.

How do I install the server?

You can install the server using npm install @shelm/wikipedia-mcp-server.

How do I run the server?

You can run the server using npx @shelm/wikipedia-mcp-server.

How do I use the server programmatically?

You can import the WikipediaServer class and use its methods to interact with the Wikipedia API.

How do I configure the server for use with Claude?

Add the server to your MCP configuration as shown in the README.