mcpField
R
Readium Mcp Server - Git To Markdown

Readium Mcp Server - Git To Markdown

Local
github.com/pablotoledoVersion Control0Updated 75w ago

About Readium Mcp Server - Git To Markdown

Readium MCP makes Readium’s documentation analysis available to LLMs and MCP-compatible clients, for examining code repositories, document directories, and websites. It handles multiple file formats and returns a summary, file tree, and content.

Key features

  1. 01Analyze local directories, Git repositories, and URLs
  2. 02Process code, Markdown, and text
  3. 03Convert web pages to Markdown
  4. 04Filter files and directories with options
  5. 05Return summaries, file trees, and content

Use cases

  1. 01Survey large technical documentation repositories
  2. 02Analyze a selected branch or subdirectory
  3. 03Extract website content for LLM analysis

MCP support

This MCP server exposes documentation analysis through the analyze_docs tool, accepting a local path, Git repository, or URL.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Readium MCP

Readium MCP

Python Version Model Context Protocol License: MIT PyPI version

A Model Context Protocol (MCP) server that exposes the powerful documentation analysis functionality of Readium for LLMs like Claude and other MCP-compatible clients.

🔍 What is this?

Readium MCP acts as a bridge between LLMs and any documentation repository, allowing:

  • Analyzing local directories, public/private Git repositories, and URLs
  • Processing multiple file formats (code, Markdown, text)
  • Converting web pages to Markdown for analysis
  • Delivering structured results with summary, file tree, and content

Perfect for when you need an LLM to analyze large bodies of documentation, code repositories, or technical websites.

🚀 Installation

With pip (recommended)
pip install readium-mcp
From source code
# Clone the repository
git clone https://github.com/tu-usuario/readium-mcp.git
cd readium-mcp

# Install dependencies with Poetry
poetry install

🛠️ Usage

Direct execution
readium-mcp
With Poetry (from source code)
poetry run readium-mcp

🔌 Integration with MCP clients

VSCode

Add to your VSCode configuration (settings.json):

{
  "mcp": {
    "servers": {
      "readium": {
        "command": "readium-mcp"
      }
    }
  }
}

Or create a .vscode/mcp.json file in your project:

{
  "servers": {
    "readium": {
      "command": "readium-mcp"
    }
  }
}
Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "readium": {
      "command": "readium-mcp"
    }
  }
}
MCP CLI
# Install
mcp install -n readium -- readium-mcp

# Inspect
mcp inspect readium

# Test in console
mcp call-tool readium analyze_docs --path https://github.com/modelcontextprotocol/servers.git

📝 Exposed tools

analyze_docs

Analyzes documentation from a local directory, Git repository, or URL using Readium.

Parameters
ParameterTypeDescriptionDefault
pathstringLocal path, GitHub URL, or documentation URL(required)
branchstringBranch to use if it's a repositorynull
target_dirstringSpecific subdirectory to analyzenull
use_markitdownbooleanUse Markitdown for conversionfalse
url_modestringURL processing mode ('clean', 'full')"clean"
max_file_sizeintegerMaximum file size in bytes5242880 (5MB)
exclude_dirsarrayDirectories to exclude[]
exclude_extarrayExtensions to exclude (e.g., ['.png'])[]
include_extarrayExtensions to include (e.g., ['.md'])[]
Response
{
  "content": [
    {"type": "text", "text": "Summary:\n..."},
    {"type": "text", "text": "Tree:\n..."},
    {"type": "text", "text": "Content:\n..."}
  ],
  "isError": false
}

🧪 Testing

Unit tests
poetry run pytest
Direct Readium test
python test.py

🧩 Example usage with Python

import asyncio
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client

async def test_readium_mcp():
    server_params = StdioServerParameters(
        command="readium-mcp"
    )

    async with stdio_client(server_params) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()

            # List tools
            tools = await session.list_tools()
            print(f"Available tools: {tools}")

            # Analyze a repository
            result = await session.call_tool(
                "analyze_docs",
                {"path": "https://github.com/modelcontextprotocol/servers.git"}
            )

            print(f"Analysis result: {result}")

# Run
asyncio.run(test_readium_mcp())

📋 Advantages

  • Fast: Efficient analysis even for large repositories
  • Flexible: Works with local directories, Git repositories, and URLs
  • Configurable: Customize extensions, sizes, and directories to analyze
  • Compatible: Works with any MCP client (Claude, VSCode, CLI)
  • Simple: No complex dependencies, stdio transport for maximum compatibility

🤝 Contributing

Contributions are welcome. Please feel free to:

  1. Fork the repository
  2. Create a branch for your feature (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👏 Acknowledgments


Developed with ❤️ by Pablo Toledo

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.