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.

维基百科 MCP 服务器

这是一个 MCP(模型控制协议)服务器,为请求的主题提供维基百科内容。

设置

  1. 安装所需的依赖项:
pip install -r requirements.txt
  1. 启动服务器:
python src/server.py

服务器将在http://localhost:5000上运行。

API 使用

使用 CLI 中的 API

/mcp发送一个 POST 请求,其 JSON 主体包含一个topic字段:

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

使用 Cursor Composer 的 API

  1. 询问有关维基百科主题的问题
  2. Cursor 将显示一个建议的 MCP 请求,并请求您允许运行该工具
  3. 批准后,Cursor 将向 MCP 服务器执行请求
  4. 提示结果将基于所选模型对 MCP 服务器响应的分析

响应格式

成功响应:

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

错误响应:

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

测试

运行测试脚本来验证服务器是否正常工作:

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

MCP 服务器检索并提供所请求主题的维基百科内容,从而可以通过模型控制协议直接轻松访问维基百科信息。

  1. 设置
    1. API 使用
      1. 使用 CLI 中的 API
      2. 使用 Cursor Composer 的 API
      3. 响应格式
    2. 测试

      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