IE

intellectronica/ez-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

31 stars 6 forks 品質 63 トレンド 11MIT

MCP サーバーを稼働させる最も簡単なパス

概要

このリポジトリには、Python/uv と TypeScript/Deno の両方の MCP サーバを 1 つのファイルに対して、完全な既定のテンプレートが含まれています。 - : コピー、ペースト、実行 - 複雑な構成は必要ありません - : 両方のテンプレートは、公式のAnthropic SDKを使用しています - : 作業コードで文書化されたすべてのもの - : 自分のツール、リソース、およびプロンプトを数分で追加 - : ローカルでMCPのアイデアをテストするための最速の方法 2つの機能的同一の戦闘テスト型テンプレート: - - - 公式MCP SDKとUV - - Denoで公式MCP SDKを使用したTypeScriptサーバー 各テンプレートは、LLM コンテキストの動的データソース - 🙂 : 関数 LLM は、アクションを実行するために呼び出すことができます - リリース : LLM 相互作用の再利用可能なテンプレート - ◀ : 環境変数サポート アクションでこれらのサーバーを見たいですか? 言語を選択し、実行します。 どちらのサーバーもすぐに起動し、利用可能なものが表示されます!

概要(AI 翻訳)

※2分以内にMCPサーバを稼働させる!** このリポジトリには、Python/uv と TypeScript/Deno の両方の MCP サーバを 1 つのファイルに対して、完全な既定のテンプレートが含まれています。

EZ-MCPの理由

  • ** ⚡ Instant Setup**: コピー、ペースト、実行 - 必要な複雑な構成なし
  • 確実な生産準備: 両方のテンプレートは公式のAnthropic SDKを使用します -包括的な例: 作業コードで文書化されるすべてのもの -******簡単に拡張可能: 自分のツール、リソース、プロンプトを数分で追加 -実験に最適: ローカルでMCPのアイデアをテストするための最速の方法

What あなたが得るもの

2つの機能的同一の戦闘テスト型テンプレート:

-[ez-mcp.py - 公式MCP SDKを使用したPythonサーバー -[ez-mcp.ts - Denoで公式MCP SDKを使用したTypeScriptサーバー

各テンプレートは、すべてのコアMCP機能を示しています。

  • ️️ **: 関数 LLM はアクションを実行するために呼び出すことができます
  • ✓Prompts**:LLMインタラクション用の再利用可能なテンプレート
  • η️ 構成: 環境変数サポート

⚡ クイックテストドライブ

アクションでこれらのサーバーを見たいですか? 言語を選択し、実行します。

Python バージョン

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

EZ-MCP: The Fastest Way to Build MCP Servers

Get an MCP server running in under 2 minutes! This repository contains complete, ready-to-run templates for single file self-contained MCP servers in both Python/uv and TypeScript/Deno.

🚀 Why EZ-MCP?

  • ⚡ Instant Setup: Copy, paste, run - no complex configuration needed
  • 🎯 Production Ready: Both templates use official Anthropic SDKs
  • 📚 Comprehensive Examples: Everything documented with working code
  • 🔧 Easily Extensible: Add your own tools, resources, and prompts in minutes
  • 💡 Perfect for Experimentation: The fastest way to test MCP ideas locally

📁 What You Get

Two functionally identical, battle-tested templates:

  • ez-mcp.py - Python server using official MCP SDK with UV
  • ez-mcp.ts - TypeScript server using official MCP SDK with Deno

Each template demonstrates all core MCP features:

  • 📊 Resources: Dynamic data sources for LLM context
  • 🛠️ Tools: Functions LLMs can call to perform actions
  • 📝 Prompts: Reusable templates for LLM interactions
  • ⚙️ Configuration: Environment variable support

⚡ Quick Test Drive

Want to see these servers in action? Pick your language and run:

Python Version

# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and run immediately
git clone 
cd ez-mcp
uv run ez-mcp.py

TypeScript Version

# Install Deno (if not already installed)
curl -fsSL https://deno.land/install.sh | sh

# Clone and run immediately
git clone 
cd ez-mcp
deno run --allow-all ez-mcp.ts

Both servers will start immediately and show you what’s available!

🎯 Create Your Own Server (Copy & Customise in 5 Minutes)

The fastest way to build your own MCP server is to copy one of our templates and customise it. Both templates are functionally identical and production-ready - just pick your preferred language!

For Python Developers:

  1. Copy the template:

    curl -O https://raw.githubusercontent.com/your-repo/ez-mcp/main/ez-mcp.py
    # Or just copy the ez-mcp.py file contents from this repo
    
  2. Rename and customise:

    cp ez-mcp.py my-awesome-server.py
    
  3. Edit the server details (around line 160):

    mcp = FastMCP(
        name="My Awesome Server",  # <- Change this to your server name
        dependencies=["mcp>=1.9.0"]
    )
    
  4. Add your own tools (copy this pattern anywhere in the file):

    @mcp.tool()
    def my_custom_tool(input_text: str) -> str:
        """Describe what your tool does"""
        # Your logic here
        return f"Processed: {input_text}"
    
  5. Run your server:

    uv run my-awesome-server.py
    

For TypeScript/JavaScript Developers:

  1. Copy the template:
    curl -O https://raw.githubusercontent.com/your-repo/ez-mcp/main/ez-mcp.ts
GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector deno run --allow-all your-server.ts
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "my-python-server": { "command": "uv", "args": ["run", "/absolute/path/to/your-server.py"], "env": { "MY_API_KEY": "your-key-here" } } } }