my-first-mcp-server
This project demonstrates how to set up and run an MCP server. It requires Python 3.12 or higher and is designed to run on macOS with Apple Silicon. Using MCP and uv, users can easily launch a server.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
18
Forks
0
Issues
0
README
🚀 My First MCP Server
This project demonstrates how to set up and run your first MCP server using MCP
and uv
.
🛠 Prerequisites
- Python 3.12+
- macOS with Apple Silicon (ARM64)
pip
anduv
installed
⚙️ Installation Steps
1. Install MCP and CLI Dependencies
pip install MCP
If you get an error using mcp[cli] in zsh, use the workaround below.
# Workaround for CLI support
pip install --upgrade typer
pip install shellingham
2. Install uv
Copy
Edit
pip install uv
3. Initialize a New MCP Project
Copy
Edit
uv init my-first-mcp-server
cd my-first-mcp-server
This creates the following structure:
css
Copy
Edit
my-first-mcp-server/
├── main.py
├── pyproject.toml
└── README.md
4. Install and Register the Server
Copy
Edit
uv run mcp install main.py
If successful, you'll see a message like:
nginx
Copy
Edit
INFO Successfully installed LeaveManager in Claude app