Enables searching Wikipedia articles, extracting section titles, and retrieving specific content from Wikipedia articles with proper formatting
MCP Wikipedia Server
A production-ready Model Context Protocol (MCP) server that provides Wikipedia search and content retrieval tools using FastMCP and Python 3.11.
๐ Quick Start
Related MCP server: Wikidata MCP Server
๐ฏ Features
Wikipedia Search: Find articles with intelligent search and get comprehensive summaries
Section Listing: Extract all section titles from any Wikipedia article
Content Retrieval: Get specific section content with proper formatting
MCP Protocol: Full Model Context Protocol compatibility for AI assistant integration
FastMCP Framework: Built on the efficient FastMCP library for optimal performance
Python 3.11: Modern Python with latest features and performance improvements
๐ Documentation
Document | Description |
Detailed setup, usage, and development instructions | |
Common commands and tool summaries | |
Automated environment setup and verification | |
Sample usage and integration examples |
๐ ๏ธ Available Tools
Tool | Purpose | Example Usage |
| Search Wikipedia and get article summaries | Search for "Python programming" |
| Get all section titles from an article | List sections of "Machine Learning" |
| Retrieve specific section content | Get "History" section from "Artificial Intelligence" |
๐๏ธ Project Structure
๐ฆ Prerequisites
macOS (tested on Apple Silicon and Intel)
Python 3.11+ (installed via pyenv recommended)
Git (for version control)
๐ฆ Installation Options
Option 1: Automated Setup (Recommended)
Option 2: Manual Setup
๐ Integration Examples
With Claude Desktop (MCP Client)
Direct Python Usage
๐งช Testing
Quick Testing
Advanced Testing
Test Suite Overview
Unit Tests: Individual function and component testing
Integration Tests: End-to-end workflow validation
Performance Tests: Response time and load benchmarks
MCP Compliance: Protocol specification validation
95%+ Code Coverage: Comprehensive test coverage
See tests/README.md for complete testing documentation.
๐ Troubleshooting
Issue | Solution |
| Run
in activated environment |
| Ensure Python 3.11+ with
|
| Check if port is available, verify dependencies |
| Check internet connection, try different search terms |
For detailed troubleshooting, see GUIDE.md.
๐ค Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Resources
๐ Support
If you find this project helpful, please consider giving it a star โญ on GitHub!
Made with โค๏ธ for the MCP community