MCP-Server-Projects

Ayesha0300/MCP-Server-Projects

3.1

If you are the rightful owner of MCP-Server-Projects and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A simple MCP tool for extracting and converting Wikipedia article content to Markdown using a FastMCP server.

Tools
1
Resources
0
Prompts
0

๐Ÿง  MCP Wiki Reader

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

๐Ÿš€ Features

  • Fetch a Wikipedia article via URL
  • Parse its main content using BeautifulSoup
  • Convert HTML content to Markdown
  • Robust error handling with custom MCP error types

๐Ÿ“‚ Project Structure

src/ โ””โ”€โ”€ mcp_wiki/ โ””โ”€โ”€ server.py # MCP tool implementation for Wikipedia article reading

markdown Copy Edit

๐Ÿ›  Requirements

  • Python 3.10+
  • uv for managing dependencies
  • MCP framework (FastMCP, McpError, etc.)

Install dependencies:

uv pip install -r requirements.txt
You can also use uv venv and uv pip for full environment isolation.

โ–ถ๏ธ Running the Server
To start the MCP server, run:

bash
Copy
Edit
mcp dev src/mcp_wiki/server.py
This will launch the FastMCP server on:

๐Ÿ”— http://127.0.0.1:6274

Registered as the wiki tool, the server exposes the following method:

python
Copy
Edit
read_wikipedia_article("https://en.wikipedia.org/wiki/Python_(programming_language)")
๐Ÿ“ฆ Package Info
This project uses uv โ€“ a super fast Python package manager:

Speedy installation and resolution

Native support for pyproject.toml

Great for modern Python workflows

๐Ÿ“ License
MIT License

yaml
Copy
Edit

---

Let me know if you'd like this saved as a file (`README.md`) or if you want to auto-generate the `requirements.txt` based on your code.