Open-source project: cudaq-docs-mcp, an MCP server to give AI coding assistants version-pinned CUDA-Q docs

Hello! I would like to share an open source project that may be useful to anyone here who writes CUDA-Q code with an AI assistant alongside.

cudaq-docs-mcp is an open-source MCP server that lets assistants such as Claude Code, Cursor, and Copilot look up CUDA-Q documentation, API signatures, and runnable examples while they work, so answers come from the current docs for the installed version rather than from an educated guess.

The motivation came from a small experiment. I asked a current model, from memory only, for the exact signature of cudaq.sample in CUDA-Q 0.14. The model was careful and honest about its limits: it offered what it called “the shape I remember, not a quotation,” and recommended checking the real documentation. That caution is sensible, but it leaves the verification work with the developer. With the server connected, the same question returns the exact signature and a canonical link into the 0.14.0 documentation, because that is what the environment had installed. The developer never has to say which version they are on; the server reads it from the installed cudaq distribution metadata.

Under the hood it builds entirely on what the CUDA-Q project already publishes: the Sphinx inventory, the markdown mirrors of each documentation page, llms.txt, and the example sources at the matching release tag. The index is local SQLite full-text search, with no API keys involved, and it works offline after a small prebuilt index downloads on first use. There are five tools, covering documentation search, whole pages, exact Python and C++ symbols, runnable examples, and a curated matrix of the 24 execution targets with guidance on choosing among them.

Trying it takes one line in Claude Code:

claude mcp add cudaq-docs -- uvx cudaq-docs-mcp

Any client that accepts a JSON server map can use:

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

pip install cudaq-docs-mcp works as well, and the README covers other clients.

The project is Apache-2.0 licensed, community-maintained, and not affiliated with NVIDIA; I built it in the open with Claude Code. There is a longer introduction in the CUDA-Q repository’s Show and tell ( cudaq-docs-mcp: serving the CUDA-Q docs to AI agents, pinned to the installed version · NVIDIA/cuda-quantum · Discussion #5103 · GitHub ), and a related documentation issue I filed with a fix branch ready ( Published llms.txt links do not resolve: llms-full.txt is missing and the file is not served at the site root · Issue #5100 · NVIDIA/cuda-quantum · GitHub ).

One question for the practitioners here: what CUDA-Q questions would you most want an assistant to answer correctly? I am assembling an evaluation set from real developer questions, and input from people who use CUDA-Q daily would make it much better.