Qiskit Documentation MCP Server
v0.3.0MCP server for querying and retrieving Qiskit documentation, guides, and API references
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_docs_tool
Search across the entire Qiskit documentation for relevant content. Use this as the primary entry point to discover documentation pages. Returns a small set of ranked results, each with a short query-centered snippet plus its title, URL, and section. This keeps the response compact for repeated use inside an agent. To read a page in full, pass a result's URL to get_page_tool.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string (e.g., 'error mitigation', 'QuantumCircuit', 'transpiler optimization'). More specific queries yield better results. |
detail | string | Per-result content level. 'snippet' (default) returns a short excerpt, a trimmed field set, and a small ranked subset; 'full' restores the original behavior — every match by default, each with its f… |
scope | string | Search scope filter (case-sensitive). Valid values: 'all' — Search everything (default) 'documentation' — Guides and general docs 'api' — API reference pages only 'learning' — Learning resourc… |
top_k | Maximum number of results to return. Left unset, snippet mode returns up to 5 and full mode returns every match. An explicit value is capped at 10 in snippet mode; full mode honors it as-is. |
get_page_tool
Fetch a Qiskit documentation page and return its content as markdown. Accepts any URL from the Qiskit documentation site. Use search_docs_tool first to find the right page, or use URLs from the resource lists. Returns documentation in markdown format with pagination support. Default max_length is 20000 chars. Set max_length=0 for unlimited. Use offset to retrieve subsequent pages when has_more is true. This tool can fetch ANY page in the Qiskit documentation, including: - SDK module API references (e.g., 'api/qiskit/circuit') - Individual class pages (e.g., 'api/qiskit/qiskit.circuit.Quantu…
| Parameter | Type | Description |
|---|---|---|
url * | string | Documentation page URL. Accepts: - Full URL: 'https://quantum.cloud.ibm.com/docs/guides/transpile' - Relative path: 'guides/transpile', 'api/qiskit/circuit' |
max_length | integer | Maximum characters to return (default: 20000, 0 for unlimited) |
offset | integer | Character offset for pagination (default: 0) |
lookup_error_code_tool
Look up a Qiskit or IBM Quantum error code to get its description and solution. Use this when a user encounters a numeric error code from Qiskit or IBM Quantum services. Returns the error message and suggested fix. Read the qiskit-docs://error-codes resource for error code categories.
| Parameter | Type | Description |
|---|---|---|
code * | string | 4-digit numeric error code as a string (e.g., '1002', '7001'). Must be exactly 4 digits. |