mcpField
M
MCPサーバー練習用コード

MCPサーバー練習用コード

Local
github.com/switch-kosukeDeveloper Tools1Updated 76w ago

About MCPサーバー練習用コード

Japanese practice code for building an MCP server, associated with a Qiita article. It uses `uv` for Python environment setup and documents configuring an LLM API, with Azure OpenAI Services given as the author's example.

Key features

  1. 01MCP server practice code
  2. 02Python environment setup with `uv`
  3. 03LLM API configuration via `.env`

Use cases

  1. 01Follow the associated Qiita article's implementation
  2. 02Set up a Python environment for MCP practice
  3. 03Configure an LLM API for the example

MCP support

The repository contains practice code for implementing an MCP server; the README refers readers to its associated Qiita article.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCPサーバー練習用コード

本コードは下記のQiita記事の実装コードです。
先に記事をご覧ください。

環境構築

  1. リポジトリクローン

    git clone https://github.com/switch-kosuke/practice-mcp-server.git
    
  2. .envファイルを作成して、使用したいLLMモデルのAPIを記載:
    筆者は、Azure OpenAI Servicesのモデルを使用しております.

    cp .env.sample .env
    
  3. Python開発環境は、uvを用います. インストールされていない方は以下を実行.

    参考:
    uvを使ってPython環境を効率的に管理!

    Linux/Mac
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
    
    Windows
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  4. uvを使って依存関係をインストール

    # 仮想環境を作成
    uv venv
    
    # 仮想環境を有効化(Linux/Mac)
    source .venv/bin/activate
    
    # 仮想環境を有効化(Windows)
    .venv\Scripts\activate
    
    # 依存関係をインストール
    uv pip install -e .
    

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.