SM

sammorrowdrums/mcp-python-starter

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

19 stars 11 forks 품질 78 트렌드 20MIT

파이썬의 스타터 MCP 서버.

개요

FastMCP를 사용하여 Python의 기능 완성 모델 Context Protocol (MCP) 서버 템플릿. 이 시동기는 청소, Pythonic 부호를 가진 모든 중요한 MCP 특징을 설명합니다. - Python 3.11+ - uv (추천) 또는 pip 이 프로젝트는 완벽한 개발을 위한 VS Code 구성을 포함합니다: 1. VS Code 2. 프로젝트 열기 MCP 구성은 .vscode/mcp.json에 있습니다 3. VS Code의 MCP 도구를 사용하여 서버를 테스트 1. Dev Containers 확장 2. 열기 명령 팔레트를 설치하십시오 : "Dev Containers : 컨테이너에서 다시 열기" 3. 모든 것이 사전 설정하고 사용할 준비가되었습니다! Python 스크립트는 uv 실행시 자동으로 다시로드합니다. 향상된 디버깅을 위해 MCP Inspector UI를 제공하는 mcp dev를 사용합니다. MCP Inspector는 MCP 서버를 테스트하고 디버깅하기위한 필수 개발 도구입니다.

개요(AI 번역)

FastMCP를 사용하여 Python의 기능 완성 모델 Context Protocol (MCP) 서버 템플릿. 이 시동기는 청소, Pythonic 부호를 가진 모든 중요한 MCP 특징을 설명합니다.

  • 모형 Context 의정서
  • 파이썬 SDK
  • FastMCP 가이드

✨ 특징

| 특징 | 설명 | |----------|------|-------| |Tools | hello | 기본공구| | | get_weather | 툴 리딩 구조형 데이터 | | | ask_llm | LLM 샘플링의 도구 | | long_task | 5초의 진도 업데이트 도구 | | | load_bonus_tool | 역동적으로 새로운 공구를 적재합니다 | | **출처 ** | [T5] | 정적 정보 | | | [T6] | 파일 기반 마크다운 리소스 | |Templates | 【T7】 | 개인 인사 | | | data://items/{id} | 아이디로 찾기 | 인포메이션 인포메이션 인포메이션 인포메이션 인포메이션 다양한 스타일의 인사말 | | | code_review | 초점 영역의 코드 리뷰 |

⭐ 빠른 시작

# 필수품

  • 파이썬 3.11+
  • uv (권장) 또는 pip

설치

서버 실행

** stdio 수송 ** (지역 개발을 위해):

HTTP 수송 (리모드/웹 배포용):

 코드 통합

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Python Starter

A feature-complete Model Context Protocol (MCP) server template in Python using the official MCP Python SDK. This starter demonstrates core MCP features with clean, Pythonic code.

📚 Documentation

✨ Features

Category Feature Description
Tools hello Basic tool with annotations
get_weather Tool returning structured data
ask_llm Tool that invokes LLM sampling
long_task Tool with 5-second progress updates
load_bonus_tool Dynamically loads a new tool
Resources info://about Static informational resource
file://example.md File-based markdown resource
Templates greeting://{name} Personalized greeting
data://items/{id} Data lookup by ID
Prompts greet Greeting in various styles
code_review Code review with focus areas

🚀 Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/SamMorrowDrums/mcp-python-starter.git
cd mcp-python-starter

# Install with uv (recommended)
uv sync

# Or with pip
pip install -e .

Running the Server

stdio transport (for local development):

uv run mcp-python-starter --stdio

HTTP transport (for remote/web deployment):

uv run mcp-python-starter --http --port 3000

🔧 VS Code Integration

This project includes VS Code configuration for seamless development:

  1. Open the project in VS Code
  2. The MCP configuration is in .vscode/mcp.json
  3. Test the server using VS Code’s MCP tools

Using DevContainers

  1. Install the Dev Containers extension
  2. Open command palette: “Dev Containers: Reopen in Container”
  3. Everything is pre-configured and ready to use!

📁 Project Structure

.
├── mcp_starter/
│   ├── __init__.py
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector -- uv run mcp-python-starter
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →