my-first-mcp-server

このプロジェクトは、MCPサーバーのセットアップと実行方法を示しています。Python 3.12以上が必要で、Apple SiliconのmacOSで動作します。MCPとuvを使用して、簡単にサーバーを立ち上げることができます。

GitHubスター

0

ユーザー評価

未評価

お気に入り

0

閲覧数

17

フォーク

0

イシュー

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 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