Wikipedia MCP Server

by danbunnell

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

Dies ist ein MCP-Server (Model Control Protocol), der Wikipedia-Inhalte zum angeforderten Thema bereitstellt.

Aufstellen

  1. Installieren Sie die erforderlichen Abhängigkeiten:
pip install -r requirements.txt
  1. Starten Sie den Server:
python src/server.py

Der Server wird auf http://localhost:5000 ausgeführt.

API-Nutzung

Verwenden der API über die CLI

Senden Sie eine POST-Anfrage an /mcp mit einem JSON-Text, der ein topic enthält:

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

Verwenden der API von Cursor Composer

  1. Stellen Sie eine Frage zu einem Thema auf Wikipedia
  2. Der Cursor zeigt eine vorgeschlagene MCP-Anforderung an und bittet um Ihre Erlaubnis, das Tool auszuführen
  3. Nach der Genehmigung führt Cursor die Anfrage an den MCP-Server aus
  4. Das Ergebnis der Eingabeaufforderung basiert auf der Analyse der ausgewählten Modelle der MCP-Serverantwort

Antwortformat

Erfolgreiche Antwort:

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

Fehlerantwort:

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

Testen

Führen Sie das Testskript aus, um zu überprüfen, ob der Server funktioniert:

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

Ein MCP-Server, der Wikipedia-Inhalte zu angeforderten Themen abruft und bereitstellt und so einen einfachen Zugriff auf Wikipedia-Informationen direkt über das Model Control Protocol ermöglicht.

  1. Aufstellen
    1. API-Nutzung
      1. Verwenden der API über die CLI
      2. Verwenden der API von Cursor Composer
      3. Antwortformat
    2. Testen

      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