diff --git a/README.md b/README.md index 05d607254..36c9cfba6 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ The Model Context Protocol allows applications to provide context for LLMs in a ### Adding MCP to your python project -We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects. +We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects. If you haven't created a uv-managed project yet, create one: @@ -127,14 +127,34 @@ def get_greeting(name: str) -> str: return f"Hello, {name}!" ``` -You can install this server in [Claude Desktop](https://claude.ai/download) and interact with it right away by running: +### Installing in Claude Desktop + +You can install this server in [Claude Desktop](https://claude.ai/download) by running: + ```bash -mcp install server.py +uv run mcp install server.py ``` +Then open Claude Dekstop app, open Settings / Developer / Edit Config, edit the config JSON file and replace + +```json +"command": "uv", +``` + +with full path to `uv` executable on your machine, for Mac it's usually: + +```json +"command": "/Users/YOUR_USERNAME/.local/bin/uv", +``` + +Save the file and restart Claude Desktop. + +### Running the server with MCP Inspector + Alternatively, you can test it with the MCP Inspector: + ```bash -mcp dev server.py +uv run mcp dev server.py ``` ## What is MCP?