Skip to main content
Glama

Wikipedia MCP Server

by danbunnell

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

cursor api example

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

      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that retrieves information from Wikipedia to provide context to LLMs, allowing users to search articles, get summaries, full content, sections, and links from Wikipedia.
        Last updated -
        9
        67
        Python
        MIT License
        • Apple
        • Linux
      • 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
        13
        Python
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that enables searching, reading, and editing wiki pages on Wizzypedia from MCP-enabled tools like Cursor or Claude Desktop.
        Last updated -
        6
        10
        JavaScript
        • Apple
      • A
        security
        A
        license
        A
        quality
        An MCP server that fetches and converts Deepwiki documentation into Markdown, allowing users to crawl pages from deepwiki.com repositories and access them in different output formats.
        Last updated -
        1
        2,524
        837
        TypeScript
        MIT License
        • Linux
        • Apple

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/danbunnell/mcp-wikipedia'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server