MCP Wiki Reader logo

MCP Wiki Reader

by Ayesha0300

A simple MCP tool for extracting and converting Wikipedia article content to Markdown using a FastMCP server. It's built with `uv` for fast and modern Python package management.

View on GitHub

Last updated: N/A

What is MCP Wiki Reader?

The MCP Wiki Reader is an MCP tool designed to fetch Wikipedia articles, parse their content, and convert the HTML to Markdown format. It utilizes a FastMCP server for operation.

How to use MCP Wiki Reader?

  1. Install the required dependencies using uv pip install -r requirements.txt. 2. Start the MCP server by running mcp dev src/mcp_wiki/server.py. 3. Access the server at http://127.0.0.1:6274. 4. Use the read_wikipedia_article method, providing a Wikipedia article URL as input (e.g., read_wikipedia_article("https://en.wikipedia.org/wiki/Python_(programming_language)")).

Key features of MCP Wiki Reader

  • Fetch Wikipedia article via URL

  • Parse content using BeautifulSoup

  • Convert HTML to Markdown

  • Robust error handling

Use cases of MCP Wiki Reader

  • Automated content extraction from Wikipedia

  • Creating Markdown documentation from Wikipedia articles

  • Integrating Wikipedia content into other applications

  • Building knowledge bases

FAQ from MCP Wiki Reader

What is MCP?

MCP refers to a framework used in this project, likely involving FastMCP and McpError.

What is uv?

uv is a fast Python package manager used for installing dependencies.

How do I install dependencies?

Use the command uv pip install -r requirements.txt.

How do I start the server?

Run the command mcp dev src/mcp_wiki/server.py.

What URL does the server run on?

The server typically runs on http://127.0.0.1:6274.