PokeMCP

by ChiragAgg5k

Integrations

  • Provides access to the PokeAPI through a GitHub-hosted MCP server framework, enabling users to fetch detailed Pokémon information and simulate battles

  • Requires Python 3.11.4+ as the runtime environment for the MCP server implementation

ポケMCP

PokeMCPは、 PokeAPIと統合することで詳細なポケモン情報を提供するMCP(モジュラーコマンドプラットフォーム)サーバーです。ポケモンの基本ステータス、タイプ、能力(効果付き)、技(効果付き)、進化チェーンなど、あらゆるポケモンの包括的なデータを取得するためのツールを公開しています。

特徴

  • ポケモンの基本ステータス、タイプ、能力(効果の説明付き)を取得します
  • 技効果を含め、ポケモンごとに最大10個の技を取得します。
  • 特定のポケモンの完全な進化チェーンを提供します
  • エラーを適切に処理し、有益なエラーメッセージを返します

要件

  • Python 3.11.4以上
  • httpx (非同期HTTPリクエスト用)
  • mcp.server.fastmcp (MCP サーバー フレームワーク用)

インストール

  1. このリポジトリをクローンします:
    git clone https://github.com/ChiragAgg5k/poke-mcp.git cd poke-mcp
  2. uvを使用して依存関係をインストールします。
    uv sync

使用法

開発サーバー

uv を使用してサーバーを実行します (必要な MCP インフラストラクチャがあることを確認してください)。

uv run mcp dev server.py

クロードとのつながり

Claude に接続するには、次のコマンドを実行します。

uv run mcp install server.py

結果は次のようになります。

Added server 'poke-mcp' to Claude config Successfully installed poke-mcp in Claude app

これで、Claude でpoke-mcp MCP ツールを使用できるようになります。

ポケモン情報を入手

戦闘シミュレーション

ここで、 Cursor などの他の MCP クライアントとサーバーを接続する方法を学びます。

API

ツール: get_pokemon_info

ポケモンの詳細情報を取得します。

議論
  • pokemon_name (str): ポケモンの名前(大文字と小文字は区別されません)
返品

次の構造を持つ辞書:

{ "name": "pikachu", "id": 25, "base_stats": { "hp": 35, "attack": 55, ... }, "types": ["electric"], "abilities": [ {"name": "static", "effect": "May paralyze on contact."}, ... ], "moves": [ {"name": "thunder-shock", "effect": "Has a 10% chance to paralyze the target."}, ... ], "evolution_chain": ["pichu", "pikachu", "raichu"] }
エラー処理

ポケモンが見つからない場合、またはネットワーク エラーが発生した場合、応答には説明メッセージを含むerrorキーが含まれます。

ツール: simulate_battle

コアメカニズム (ステータス、タイプ、ステータス効果) を使用して、2 匹のポケモン間のポケモンバトルをシミュレートします。

議論
  • pokemon1 (str): 最初のポケモンの名前(大文字と小文字は区別されません)
  • pokemon2 (str): 2番目のポケモンの名前(大文字と小文字は区別されません)
返品

次の構造を持つ辞書:

{ "pokemon1": "pikachu", "pokemon2": "charizard", "initial_hp": { "pikachu": 35, "charizard": 78 }, "battle_log": [ "Turn 1:", "charizard uses mega-punch and deals 75 damage! (pikachu HP: 0)", "pikachu fainted!", "Winner: charizard!" ], "winner": "charizard" }
エラー処理

ポケモンが見つからないかネットワーク エラーが発生した場合、応答には説明メッセージを含むerrorキーが含まれます。

ライセンス

このプロジェクトはPokeAPIを使用しており、教育目的および非商用目的での使用を目的としています。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

PokeAPI と統合することで詳細なポケモン情報を提供し、ユーザーがポケモンに関する包括的なデータを取得してバトルをシミュレートできるようにする MCP サーバーです。

  1. 特徴
    1. 要件
      1. インストール
        1. 使用法
          1. 開発サーバー
          2. クロードとのつながり
        2. API
          1. ツール: get_pokemon_info
          2. ツール: simulate_battle
        3. ライセンス

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that provides Pokémon information by connecting to the PokeAPI, enabling users to query detailed Pokémon data, discover random Pokémon, and find Pokémon by region or type.
            Last updated -
            4
            2
            TypeScript
          • A
            security
            A
            license
            A
            quality
            An MCP Server implementation that integrates the Balldontlie API, to provide information about players, teams and games for the NBA, NFL and MLB.
            Last updated -
            4
            22
            4
            JavaScript
            MIT License
          • -
            security
            -
            license
            -
            quality
            A Model Context Protocol server that interfaces with PokeAPI to provide Pokémon information to LLM applications through JSON-RPC over stdio.
            Last updated -
            TypeScript
          • -
            security
            F
            license
            -
            quality
            An MCP server implementation that enables users to interact with the PokeAPI to fetch Pokemon information through natural language queries.
            Last updated -
            Python
            • Linux
            • Apple

          View all related MCP servers

          ID: 0r0palz954