pysphinx_mcp
MCP server for browsing, searching, and reading Sphinx documentation sites.
Tools
list_pages(base_url): all pages on a docs siteread_page(base_url, page_path): page content as clean textsearch_docs(base_url, query): full-text search via Sphinx search indexlist_sections(base_url, page_path): heading structure (h1-h4) of a pageget_api_signature(base_url, object_path): signature, parameters, and docstring for a class or function
Install
pip install -U pysphinx_mcp
Usage
As an MCP server
Register with any MCP host:
{
"mcpServers": {
"sphinx-docs": {
"command": "python",
"args": ["-m", "pysphinx_mcp"]
}
}
}
As a library
Each tool is an async function, import and call from your own code:
from pysphinx_mcp import search_docs, read_page, get_api_signature
async def main():
results = await search_docs(
"https://docs.python.org/3/",
"async await",
)
content = await read_page(
"https://docs.python.org/3/",
"library/asyncio.html",
)
signature = await get_api_signature(
"https://docs.python.org/3/",
"asyncio.gather",
)
Composing with other servers
Import the FastMCP instance for mounting or wrapping:
from pysphinx_mcp import mcp
parent_server.mount(mcp)
Metadata
Release files for pysphinx-mcp 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pysphinx_mcp-0.2.2.tar.gz | 11.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysphinx_mcp-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.9 kB
Release files / pysphinx_mcp-0.2.2.tar.gz
| Download URL | pysphinx_mcp-0.2.2.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e83cb707915e07531c1ac9d7575e5a1280598916ffb29a3ab0a527cd8a09069d
|
|
BLAKE2b-256 checksum How to use checksums |
ebb72130b257b34a7c9987be7e9e30cba70680b3c1df42794f93752eb4e77fbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / pysphinx_mcp-0.2.2-py3-none-any.whl
| Download URL | pysphinx_mcp-0.2.2-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
973f87bc194eda6762ddacbe13d6e013ac332db7dae5f99ab4362cae12987678
|
|
BLAKE2b-256 checksum How to use checksums |
d390cf8b58f574caebccf796b71983997ef09a4171835fdb3ce2cc8e71625855
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logSecurity for pysphinx-mcp 0.2.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pysphinx_mcp-0.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logA 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.