Update README to clarify installing mcp to project vs running mcp (#277)

uv add is for adding dependency to uv managed python projects, and folks
not familiar with uv may mistaken the command for running mcp. Added
wordings that clarifies this.
This commit is contained in:
john0312 2025-03-13 22:35:53 +08:00 • committed by GitHub
commit ebb81d3b2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,17 +67,27 @@ The Model Context Protocol allows applications to provide context for LLMs in a
## Installation
We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects:
### Adding MCP to your python project
We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects. In a uv managed python project, add mcp to dependencies by:
```bash
uv add "mcp[cli]"
```
Alternatively:
Alternatively, for projects using pip for dependencies:
```bash
pip install mcp
```
### Running the standalone MCP development tools
To run the mcp command with uv:
```bash
uv run mcp
```
## Quickstart
Let's create a simple MCP server that exposes a calculator tool and some data: