@@ -58,9 +58,33 @@ exposes a small MCP tool surface tuned for high-signal retrieval.
5858The model gets the exact symbol match and the relevant documentation section
5959instead of a full-page dump.
6060
61+ ## 30-second demo
62+
63+ Ask your MCP client:
64+
65+ > In Python 3.13, how should I use ` asyncio.TaskGroup ` and what changed from older asyncio patterns?
66+
67+ The agent should use ` search_docs ` for the exact symbol, then ` get_docs ` for the
68+ matching section. Instead of generic web results or an entire docs page, it gets
69+ the official stdlib text for the requested Python version, trimmed to the useful
70+ section.
71+
72+ Local source smoke test until the PyPI package is published:
73+
74+ ``` bash
75+ uvx --from git+https://github.com/ayhammouda/python-docs-mcp-server.git mcp-server-python-docs --version
76+ ```
77+
6178## Install
6279
63- Run it directly with ` uvx ` :
80+ Until the first PyPI release is published, run from GitHub:
81+
82+ ``` bash
83+ uvx --from git+https://github.com/ayhammouda/python-docs-mcp-server.git mcp-server-python-docs --version
84+ ```
85+
86+ After PyPI publishing is complete, the package will also run directly with
87+ ` uvx ` :
6488
6589``` bash
6690uvx mcp-server-python-docs --version
@@ -80,9 +104,11 @@ shell or use `python -m uv ...` as a fallback for local contributor commands.
80104Build the local documentation index:
81105
82106``` bash
83- uvx mcp-server-python-docs build-index --versions 3.10,3.11,3.12,3.13,3.14
107+ uvx --from git+https://github.com/ayhammouda/python-docs-mcp-server.git mcp-server-python-docs build-index --versions 3.10,3.11,3.12,3.13,3.14
84108```
85109
110+ After PyPI publishing, ` uvx mcp-server-python-docs build-index ... ` is enough.
111+
86112If you installed the package persistently, you can drop the ` uvx ` prefix:
87113
88114``` bash
@@ -110,7 +136,11 @@ Add this to your Claude Desktop configuration file:
110136 "mcpServers" : {
111137 "python-docs" : {
112138 "command" : " uvx" ,
113- "args" : [" mcp-server-python-docs" ]
139+ "args" : [
140+ " --from" ,
141+ " git+https://github.com/ayhammouda/python-docs-mcp-server.git" ,
142+ " mcp-server-python-docs"
143+ ]
114144 }
115145 }
116146}
@@ -128,7 +158,11 @@ global settings):
128158 "mcpServers" : {
129159 "python-docs" : {
130160 "command" : " uvx" ,
131- "args" : [" mcp-server-python-docs" ]
161+ "args" : [
162+ " --from" ,
163+ " git+https://github.com/ayhammouda/python-docs-mcp-server.git" ,
164+ " mcp-server-python-docs"
165+ ]
132166 }
133167 }
134168}
@@ -141,7 +175,7 @@ Add this to `.codex/config.toml`:
141175``` toml
142176[mcp_servers .python-docs ]
143177command = " uvx"
144- args = [" mcp-server-python-docs" ]
178+ args = [" --from " , " git+https://github.com/ayhammouda/python-docs-mcp-server.git " , " mcp-server-python-docs" ]
145179```
146180
147181## How quality is verified
@@ -174,20 +208,21 @@ The server currently exposes five MCP tools:
174208| ` list_versions ` | List all indexed Python versions with metadata. |
175209| ` detect_python_version ` | Detect the user's local Python version and report whether it matches an indexed documentation version. |
176210
177- ## When to use this instead of generic docs retrieval
178-
179- Use this server when you need:
211+ ## Why not Context7 or generic docs retrieval?
180212
181- - exact Python stdlib symbol resolution
182- - consistent version-aware answers across Python 3.10 through 3.14
183- - token-efficient section retrieval from official docs
184- - a local, read-only MCP server with a simple operational story
213+ Use this server when the question is about Python's standard library and you
214+ want the boring answer that is actually correct:
185215
186- Use a generic fetcher or broader docs MCP when you need:
216+ - official Python docs, not scraped mirrors or mixed-source summaries
217+ - exact symbol resolution from ` objects.inv `
218+ - Python-version-aware results across 3.10 through 3.14
219+ - token-efficient section retrieval instead of full-page dumps
220+ - local, read-only runtime behavior with no API keys
187221
188- - arbitrary third-party package content beyond package-declared PyPI metadata
189- - arbitrary web pages
190- - mixed-source research across many frameworks
222+ Use Context7 or a generic docs fetcher when you need broader third-party library
223+ coverage, arbitrary web pages, or cross-framework research. This server is not a
224+ universal docs search engine. It is a precise stdlib retrieval tool for AI
225+ coding agents.
191226
192227## Retrieved docs cache
193228
0 commit comments