Skip to main content
Glama

Wikipedia MCP Server

by danbunnell

维基百科 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 服务器响应的分析

游标 API 示例

响应格式

成功响应:

{ "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

      • 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
        73
        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
        14
        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
        1
        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,934
        893
        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