merlin-perceval-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@merlin-perceval-mcpsearch docs for angle encoding"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
merlin-perceval-mcp
An MCP server that gives AI coding agents accurate, up-to-date knowledge of MerLin, Quandela's photonic quantum machine learning framework for PyTorch, and Perceval, the photonic SDK it is built on.
MerLin is young and moving fast, and it post-dates the training cutoff of most models. Left to itself an agent will invent plausible-looking QuantumLayer arguments that do not exist. This server replaces guessing with the real documentation, the real signatures and the real example notebooks.
Nothing is stored locally
The server ships no vendored documentation and writes nothing to disk. Every answer is fetched at call time from the published documentation sites, GitHub and PyPI, and cached only in memory for the life of the process.
It also does not hardcode a version. On each call it reads the docs landing page, follows the redirect that names the current version, and serves that. When MerLin 0.5 ships, this server serves 0.5 — no update, no re-index, no maintenance.
That leaves exactly one failure mode: upstream changing how it publishes. A scheduled canary workflow runs the live tests weekly and opens an issue if the published layout ever moves.
Related MCP server: Documentation Retrieval MCP Server (DOCRET)
Install
git clone https://github.com/TonyPansera/merlin-perceval-mcp.git
cd merlin-perceval mcp
python -m venv .venv && .venv/bin/pip install -e .Requires Python 3.10+. The only runtime dependencies are mcp and httpx. The server never imports the libraries it documents.
Tools
Every tool takes library, either "merlin" (the default) or "perceval".
Tool | What it does |
| Full-text search across the documentation; returns pages, URLs and matching sections. |
| The full published source of one page — reStructuredText, code blocks intact. |
| Find documented symbols by name across classes, functions, methods and modules. |
| Exact signature, docstring and public methods of one symbol, parsed from real source. |
| The library's actual source code, narrowed to one class or function. |
| The curated example gallery, with summaries and tags. |
| An example notebook rendered as markdown with runnable code cells. |
| Recent upstream release notes — the best guide to what changed. |
There is also a docs://{library}/index resource listing every documentation page, and a merlin_quickstart prompt that walks an agent through grounding its code in the docs.
A typical session: search_docs("angle encoding") → get_doc_page(...) →
get_api_doc("QuantumLayer") → get_example("notebooks/FirstQuantumLayers") → write code
that actually runs.
Configuration
All optional.
Variable | Default | Purpose |
| auto-discovered | Pin the MerLin docs version, e.g. |
| auto-discovered | Pin the Perceval docs version, e.g. |
|
| Seconds to cache indexes and inventories. |
|
| Seconds to cache pages and source files. |
|
| Seconds to remember a 404. Kept short so a page missing during a docs redeploy is not reported as absent for the whole cache lifetime. |
|
| Hard cap on any single response body, and on inventory decompression. |
|
| HTTP timeout in seconds. |
|
| Logging level. Logs go to stderr, leaving stdout free for the protocol. Also settable with |
| unset | Raises the GitHub API rate limit. Rarely needed: the server makes at most a couple of API calls per repository per hour, and reads all file contents through |
Development
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest # offline: every HTTP call is mocked
.venv/bin/pytest -m network # live: hits the real docs sites and repositories
.venv/bin/ruff check . && .venv/bin/mypyThe offline suite builds its upstream payloads in memory, so there are no recorded fixtures to keep in sync and it passes with the network unplugged.
How it works
Both documentation sites are Sphinx builds, and Sphinx publishes everything needed to answer questions about a library without scraping a single rendered page:
objects.inv— a compressed index of every documented symbol and its URL.searchindex.js— the complete inverted full-text index Sphinx builds for its own search box._sources/<page>.rst.txt— the untouched source of every page.
Signatures come from parsing the real modules on GitHub with Python's ast, which is more faithful than rendered autodoc HTML. Adding another Sphinx-documented library is one entry in the registry in config.py.
License
MIT. MerLin and Perceval are projects of Quandela, this server is an independent client of their public documentation.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that fetches real-time documentation for popular libraries like Langchain, Llama-Index, MCP, and OpenAI, allowing LLMs to access updated library information beyond their knowledge cut-off dates.13
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.1MIT
- Flicense-qualityDmaintenanceAn intelligent MCP server that enables AI agents to crawl, index, and semantically search official framework documentation using local RAG. It prevents hallucinations by providing precise, up-to-date documentation excerpts directly into the AI's context window.1
- Alicense-qualityBmaintenanceAn MCP server that provides tools to fetch live, version-accurate documentation, changelogs, examples, and method signatures for npm and PyPI packages, preventing AI coding agents from hallucinating stale APIs.16ISC
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TonyPansera/merlin-perceval-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server