
python doc assist mcp
A search-first MCP for Python library documentation and compatibility assistance
Repository Info
About This Server
A search-first MCP for Python library documentation and compatibility assistance
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Python Documentation & Compatibility MCP
A search-first Model Context Protocol (MCP) server for Python library documentation and compatibility assistance.
Features
This MCP provides two main capabilities:
-
Library Compatibility Checking: Discover dependency chains and compatibility between libraries, frameworks, and system components.
- Find compatible CUDA versions for PyTorch
- Check NVIDIA driver requirements for specific CUDA versions
- Get recommended version combinations for stable setups
-
Documentation Lookup: Retrieve documentation for specific functions or classes with version-specific information.
- Get function signatures, parameters, and return values
- Find usage examples
- Support for multiple libraries simultaneously
How It Works
This MCP follows a "search-first" approach:
- When a request comes in, it constructs optimized search queries
- These queries are delegated to external search MCPs (like Brave Browser MCP)
- Results are processed to extract structured information
- Formatted data is returned to the LLM for presentation to the user
The architecture consists of:
SearchDelegate: Handles delegation to external search MCPsQueryConstructor: Builds optimized search queries for different needsResultProcessor: Extracts structured information from search results- Main server that exposes MCP tools
Tools
get_library_compatibility
Discover library dependencies and check compatibility between components.
{
"library": "pytorch",
"version": "2.2.0",
"with": ["cuda", "nvidia driver"]
}
get_function_documentation
Retrieve documentation for specific library functions or classes.
{
"library": "pytorch",
"version": "2.2.0",
"function": "DataLoader",
"multiple_libraries": [
{
"library": "numpy",
"version": "1.24.0",
"function": "array"
}
]
}
Installation
- Clone this repository
- Add to your MCP settings configuration:
{
"mcpServers": {
"python-doc-assist": {
"command": "node",
"args": [
"/path/to/python-doc-assist/index.js"
],
"disabled": false,
"autoApprove": []
}
}
}
Development
This MCP is currently implemented as a simplified version without external dependencies. For a production implementation, it would need:
- Proper MCP SDK integration
- Integration with actual search MCPs
- Better result processing and extraction
License
MIT
Quick Start
Clone the repository
git clone https://github.com/ipsiuhang/python-doc-assist-mcpInstall dependencies
cd python-doc-assist-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.