uv
package manager, (optional but highly recommended)- claude desktop or cursor ( basically any MCP client )
- Serper Account - For Search Tool (free no Credit Card Required)
Adding MCP to your Python Project
uv add "mcp[cli]"
Alternatively, for projects using pip for dependencies:
pip install "mcp[cli]"
git clone https://github.com/shivansh12t/docs-mcp-pythonsdk
cd docs-mcp-pythonsdk
uv pip sync
SERPER_API_KEY=<your_api_key>
- go to
.vscode/mcp.json
- update the args to your absolute path to the mcp server
- It should be up and running in
Agent Mode
- If you are having any issues, visit Use MCP Servers in VSCode Copilot Chat
- Open Claude Desktop, go to settings
shift + ,
Edit Configurations
- add the following json with correct path to
claude_desktop_configurations.json
{
"mcpServers": {
"documentation": {
"command": "uv",
"args": [
"--directory",
"absolute/path/to/the/project",
"run",
"main.py"
]
}
}
}
- Restart Claude & If you see a Hammer Sign near the Chatbox, Congrats your MCP is Up and Running
npx @modelcontextprotocol/inspector uv run main.py