Skip to main content

MCP server providing structured access to Reflex documentation

Project description

Reflex Docs MCP Server

Ground AI agents in real, up-to-date Reflex docs via a fast, local MCP server.

Python: 3.14 recommended. Compatible with 3.13+.

What It Does

  • Full‑text search over Reflex docs (SQLite FTS5)
  • Section‑level retrieval for precise context
  • Component index for rx.* lookups
  • FastMCP server with stdio and SSE transports

Quickstart

# Create venv
python3.14 -m venv .venv
. .venv/bin/activate

# Install
pip install -e .

# Index docs (clones Reflex docs and builds search index)
python -m reflex_docs_mcp.indexer

# Run MCP server (stdio)
python -m reflex_docs_mcp.server

# Run MCP server over SSE
python -m reflex_docs_mcp.server --transport sse --host 127.0.0.1 --port 8000

MCP Tools

  • search_docs(query)
  • get_doc(slug)
  • list_pages(prefix?, limit?)
  • list_components(category?)
  • search_components(query, limit?)
  • get_component(name)
  • get_stats()

Local MCP Config (VS Code)

The repository includes a ready-to-use config at .vscode/mcp.json that runs the server with the local venv.

Project Layout

├── main.py                 # MCP stdio entry point
├── src/reflex_docs_mcp/
│   ├── models.py           # Pydantic data models
│   ├── database.py         # SQLite + FTS5 operations
│   ├── parser.py           # Markdown parser
│   ├── indexer.py          # Docs cloning & indexing
│   └── server.py           # MCP server (stdio + SSE)
├── render.yaml             # Render deployment config
├── Procfile                # Process definition
└── test.py                 # OpenRouter + MCP demo client

Demo (Optional)

The demo client uses Groq (OpenAI-compatible API) and the MCP Python client.

pip install -e ".[demo]"
cp env.example .env
# Add GROQ_API_KEY to .env
python test.py

Notes

  • env.example contains Groq settings.
  • The indexer writes to data/reflex_docs.db by default.
  • On startup, the server auto-builds the index if missing. Controls:
  • REFLEX_DOCS_AUTO_INDEX (default: true)
  • REFLEX_DOCS_DOCS_SRC (path to clone docs into, default: docs_src)
  • REFLEX_DOCS_SKIP_CLONE / REFLEX_DOCS_FORCE_CLONE
  • REFLEX_DOCS_KEEP_EXISTING

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflex_docs_mcp-0.1.0.tar.gz (101.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflex_docs_mcp-0.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file reflex_docs_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: reflex_docs_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 101.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reflex_docs_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc4667d19c2a0113f6fda93c4f8d6a74eb20804085c4821e914b9288af81e698
MD5 fbd1fcd7d1d801cfaf0d62719e9c588f
BLAKE2b-256 22d8f3d0502ecf27f05f8cd15821252f16782b2f45947fe56d0893f37e7e8da0

See more details on using hashes here.

Provenance

The following attestation bundles were made for reflex_docs_mcp-0.1.0.tar.gz:

Publisher: publish.yml on itsmeadarsh2008/reflex-docs-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reflex_docs_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_docs_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e585815fed0cf66e6314573df0038bfdf36e67fe857118468bbeb941ca22e56c
MD5 1170eec7fb3f447dd3e22606e99cc366
BLAKE2b-256 0eff9f441b518e93b3ab964e2c8e0b9b6198055929841de8c25d7024b7e9f4ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for reflex_docs_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on itsmeadarsh2008/reflex-docs-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page