pokemon-mcp-server

pokemon-mcp-server

Enables querying Pokemon information from PokeAPI, including Pokemon details, types, moves, abilities, evolution chains, and search functionality, through natural language.

Category
Visit Server

README

Pokemon MCP Server

PokeAPIを利用したModel Context Protocol (MCP)サーバーです。Pokemonの情報を取得するためのツールを提供します。

機能

  • Pokemon情報の取得
  • Pokemon種族情報の取得
  • Pokemonタイプ情報の取得
  • Pokemon技情報の取得
  • Pokemon特性情報の取得
  • 進化チェーン情報の取得
  • Pokemon検索
  • Pokemonリスト取得(ページネーション対応)

インストール

npm install

ビルド

npm run build

開発

開発モードで実行

npm run dev

ビルドしてから実行

npm run build
npm start

テスト

全テスト実行

npm test

単体テストのみ

npm run test:unit

E2Eテストのみ

npm run test:e2e

テストカバレッジ

npm run test:coverage

統合テスト(実際のAPIを使用)

npm run test:integration

MCP クライアントでの使用方法

Claude Desktop での設定

Claude Desktop の設定ファイル(claude_desktop_config.json)に以下を追加:

{
  "mcpServers": {
    "pokemon": {
      "command": "node",
      "args": ["/path/to/pokemon-mcp-server/dist/index.js"]
    }
  }
}

使用可能なツール

  1. get_pokemon - Pokemon情報取得

    引数: name (string) - Pokemon名
    
  2. get_pokemon_type - Pokemonタイプ情報取得

    引数: name (string) - タイプ名
    
  3. get_move - Pokemon技情報取得

    引数: name (string) - 技名
    
  4. get_ability - Pokemon特性情報取得

    引数: name (string) - 特性名
    
  5. get_evolution_chain - 進化チェーン情報取得

    引数: id (number) - 進化チェーンID
    
  6. search_pokemon - Pokemon検索

    引数: query (string) - 検索クエリ
    
  7. get_pokemon_list - Pokemonリスト取得

    引数: limit (number, optional) - 取得件数(デフォルト: 20)
          offset (number, optional) - オフセット(デフォルト: 0)
    

使用例

Claude Desktop でこのMCPサーバーを設定後、以下のような質問ができます:

  • "ピカチュウの情報を教えて"
  • "炎タイプのポケモンについて教えて"
  • "10万ボルトという技について教えて"
  • "静電気という特性について教えて"
  • "pikaで始まるポケモンを検索して"

プロジェクト構造

src/
├── client/          # PokeAPI クライアント
│   └── pokeapi-client.ts
├── server/          # MCP サーバー設定
│   └── mcp-server.ts
├── tools/           # ツール定義とハンドラー
│   ├── tool-definitions.ts
│   └── tool-handlers.ts
├── config/          # 設定ファイル
│   └── server-config.ts
├── types/           # TypeScript 型定義
│   ├── index.ts
│   ├── common.ts
│   ├── pokemon.ts
│   ├── species.ts
│   ├── type.ts
│   ├── move.ts
│   ├── ability.ts
│   └── evolution.ts
└── index.ts         # エントリーポイント

依存関係

  • @modelcontextprotocol/sdk - MCP SDK
  • axios - HTTP クライアント

開発依存関係

  • typescript - TypeScript コンパイラ
  • jest - テストフレームワーク
  • ts-jest - Jest TypeScript サポート
  • nock - HTTP モッキング
  • @types/node - Node.js 型定義

ライセンス

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured