my-first-mcp-server

MadsDoodle/my-first-mcp-server

3.1

If you are the rightful owner of my-first-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This guide provides a step-by-step approach to setting up and running your first MCP server using MCP and uv.

šŸš€ 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 and uv 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