
mcp wikipedia
为AI应用提供基于Model Context Protocol协议访问维基百科内容的工具。
Repository Info
About This Server
为AI应用提供基于Model Context Protocol协议访问维基百科内容的工具。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Wikipedia
A Wikipedia Model Context Provider for AI applications using the Model Context Protocol.
Overview
This project provides a server that enables AI models to access Wikipedia content through standardized interfaces using the Model Context Protocol (MCP). It offers tools for retrieving article summaries, segments, related articles, random articles, and searching Wikipedia content.
Features
- Article Summary: Retrieve concise summaries of Wikipedia articles
- Article Segments: Retrieve structured sections of Wikipedia articles
- Related Articles: Find articles related to a specific topic
- Random Article: Discover random Wikipedia articles
- Search: Search Wikipedia for specific topics
Installation
# Clone the repository
git clone https://github.com/yourusername/mcp-wikipedia.git
cd mcp-wikipedia
# Install dependencies
npm install
Usage
Start the MCP server:
npm start
Or run it directly with npx:
# From the package directory
npx .
# From anywhere (after installing globally or from a specific path)
npx mcp-wikipedia
# OR
npx /path/to/mcp-wikipedia
The server uses standard input/output for communication following the MCP protocol.
API
This MCP server uses the Wikipedia REST API v1 for most functionality, with the search feature using the MediaWiki Action API.
Tools
-
get-article-summary- Get a summary of a Wikipedia article- Parameters:
title(string) - The title of the Wikipedia article
- Parameters:
-
get-article-segments- Get article segments/sections- Parameters:
title(string) - The title of the Wikipedia article
- Parameters:
-
find-related-articles- Find articles related to a given title- Parameters:
title(string) - The title of the Wikipedia article
- Parameters:
-
random-article- Get a random Wikipedia article- Parameters: none
-
search-wikipedia- Search Wikipedia for articles matching a query- Parameters:
query(string) - The search query
- Parameters:
License
MIT
Quick Start
Clone the repository
git clone https://github.com/gusbicalho/mcp-wikipediaInstall dependencies
cd mcp-wikipedia
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.