Wikipedia MCP Server

by danbunnell
1
  • Linux
  • Apple

Integrations

  • Integrates with Cursor Composer, enabling users to request Wikipedia information through natural language queries that are processed and returned with relevant article content.

  • Provides Wikipedia content for requested topics, allowing AI agents to retrieve and analyze information from Wikipedia articles based on user queries.

Wikipedia MCP Server

This is an MCP (Model Control Protocol) server that provides Wikipedia content for the requested topic.

Setup

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Start the server:
python src/server.py

The server will run on http://localhost:5000.

API Usage

Using the API from the CLI

Send a POST request to /mcp with a JSON body containing a topic field:

curl -X POST http://localhost:5000/mcp \ -H "Content-Type: application/json" \ -d '{"topic": "Python_(programming_language)"}'

Using the API from Cursor Composer

  1. Ask a question about a topic on Wikipedia
  2. Cursor will display a proposed MCP request and ask for your permission to run the tool
  3. After approving, Cursor will execute the request to the MCP Server
  4. The prompt result will be based on the selected models analysis of the MCP Server response

Response Format

Successful response:

{ "status": "success", "data": { "title": "Page Title", "content": "Page Content", "url": "Wikipedia URL" } }

Error response:

{ "status": "error", "error": "Error message" }

Testing

Run the test script to verify the server is working:

python src/test_server.py
-
security - not tested
F
license - not found
-
quality - not tested

An MCP server that retrieves and provides Wikipedia content for requested topics, enabling easy access to Wikipedia information directly through the Model Control Protocol.

  1. Setup
    1. API Usage
      1. Using the API from the CLI
      2. Using the API from Cursor Composer
      3. Response Format
    2. Testing

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol (MCP) server that enables semantic search and retrieval of documentation using a vector database (Qdrant). This server allows you to add documentation from URLs or local files and then search through them using natural language queries.
        Last updated -
        14
        74
        JavaScript
        Apache 2.0
        • Apple
      • -
        security
        F
        license
        -
        quality
        A MCP server that fetches and renders Baidu Baike (Chinese Wikipedia) discussion content, allowing users to access encyclopedia article discussions and generate readable analysis of the structured data.
        Last updated -
        TypeScript
      • -
        security
        F
        license
        -
        quality
        An MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.
        Last updated -
        Python
      • A
        security
        F
        license
        A
        quality
        A MCP server that allows you to search and retrieve content on any wiki site using MediaWiki with LLMs 🤖. wikipedia.org, fandom.com, wiki.gg and more sites using Mediawiki are supported!
        Last updated -
        2
        1
        Python

      View all related MCP servers

      ID: nsgvcup4zk