Skip to main content

GenLayer Documentation MCP Server

A standardized, shareable Model Context Protocol (MCP) server that packages and exposes the GenLayer documentation (genlayer-docs.txt) to any AI assistant (including Claude Desktop, Cursor, Windsurf, Gemini, and others).

By packaging this as a Python project with a pyproject.toml and utilizing the official mcp SDK, anyone can run it with a standard Python install — no manual file paths or dependency wrangling.

Available Tools

Once registered, the server exposes the following tools:

  1. search_docs(query: string, top_k: int = 5): Search the GenLayer documentation for relevant sections matching a query. Returns top matching sections along with their hierarchical title breadcrumbs (e.g., What is GenLayer > Core Technology > On-Chain AI Processing) and starting line numbers.

  2. get_section(title: string): Retrieve the full content of a specific documentation section matching the specified heading title.

  3. list_sections(): List all headings and subheadings present in the GenLayer documentation along with their starting line numbers.


This is the setup verified to work with a standard Python installation on Windows, macOS, and Linux.

1. Install the package

From PyPI:

pip install genlayer-docs-mcp

Or from source (after cloning this repo):

pip install .

2. Register it with your AI client

Add the server inside the mcpServers block of your client's MCP config (Claude Desktop on Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "genlayer-docs": {
      "command": "python",
      "args": [
        "-m",
        "genlayer_docs_mcp"
      ]
    }
  }
}

Why python -m? It uses the Python interpreter already on your PATH, so there is nothing extra to install (unlike uvx, which requires uv to be installed first). Restart your client after saving, and the three tools above will appear.

For Cursor / Windsurf, use the same values in the editor's MCP settings:

  • Type: command
  • Command: python
  • Args: -m genlayer_docs_mcp

Alternative: Zero-install with uvx

If you have uv installed, you can run the server without installing it first. Anyone in the world can use this on any AI client with zero local files:

{
  "mcpServers": {
    "genlayer-docs": {
      "command": "uvx",
      "args": ["genlayer-docs-mcp"]
    }
  }
}

Cursor / Windsurf command: uvx genlayer-docs-mcp

Requires uv/uvx on your PATH. Install it with winget install astral-sh.uv (Windows) or see the uv install guide.


Alternative: Install directly from GitHub (no PyPI needed)

To track the latest source, install straight from the public repository:

  • Using pip:

    pip install "git+https://github.com/Laegend14/Genlayer-mcp"
    
  • Using uvx (zero-install):

    {
      "mcpServers": {
        "genlayer-docs": {
          "command": "uvx",
          "args": [
            "--from",
            "git+https://github.com/Laegend14/Genlayer-mcp",
            "genlayer-docs-mcp"
          ]
        }
      }
    }
    

Alternative: Global install via pipx

Users who prefer an isolated global install can use pipx:

# From PyPI
pipx install genlayer-docs-mcp

# Or from GitHub
pipx install "git+https://github.com/Laegend14/Genlayer-mcp"

Then configure the command in any AI client as:

  • Command: genlayer-docs-mcp (no arguments required)

Note: this requires the pipx scripts directory to be on your PATH (pipx ensurepath). If your client can't find the genlayer-docs-mcp executable, use the Quick Start python -m method instead.


Development

Clone the repo and install in editable mode:

git clone https://github.com/Laegend14/Genlayer-mcp
cd Genlayer-mcp
pip install -e .

Run the server directly to confirm it loads the documentation:

python -m genlayer_docs_mcp

You should see a log line reporting the number of parsed documentation sections.

Metadata

Release files for genlayer-docs-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genlayer-docs-mcp 0.1.1
File Size Uploaded Provenance Actions
genlayer_docs_mcp-0.1.1.tar.gz 212.4 kB Without provenance Details for genlayer_docs_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genlayer-docs-mcp 0.1.1
File Interpreter ABI Platform Actions
genlayer_docs_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for genlayer_docs_mcp-0.1.1-py3-none-any.whl

Total release size: 428.2 kB

Release files / genlayer_docs_mcp-0.1.1.tar.gz

Download URL genlayer_docs_mcp-0.1.1.tar.gz
Size 212.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a951c4b49b752a38ed3391ca3b3d259340a779bc6114ae364117821046d96061
BLAKE2b-256 checksum
How to use checksums
4c288f5a67018d87c576eb01a457c3ddcd1390d37bef247b310e8073af5df058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / genlayer_docs_mcp-0.1.1-py3-none-any.whl

Download URL genlayer_docs_mcp-0.1.1-py3-none-any.whl
Size 215.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acdd90e2a52459258df3363e721b791f1026345e4618d16767b55bc3313bdbe7
BLAKE2b-256 checksum
How to use checksums
a8de76675c356b29eeb758a673d4873f4be0988407673a8f1ab83e8a12379bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for genlayer-docs-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page