mcp-pokeapi-server

by AkhrHysd

166 downloads
Not rated
GitHub

Description

# mcp-pokeapi-server POKEAPI と連携し、MCP(Model Context Protocol)仕様でポケモン情報を取得できるサーバーです。 ## 概要 - MCP プロトコル(JSON-RPC 2.0 over stdio)で、LLM アプリや MCP クライアントからポケモン情報取得ツールを提供します。 - POKEAPI(https://pokeapi.co/)を利用。 - スキーマバリデーションには[zod](https://zod.dev/)を使用。 ## セットアップ ```sh npm install ```…

About

# mcp-pokeapi-server POKEAPI と連携し、MCP(Model Context Protocol)仕様でポケモン情報を取得できるサーバーです。 ## 概要 - MCP プロトコル(JSON-RPC 2.0 over stdio)で、LLM アプリや MCP クライアントからポケモン情報取得ツールを提供します。 - POKEAPI(https://pokeapi.co/)を利用。 - スキーマバリデーションには[zod](https://zod.dev/)を使用。 ## セットアップ ```sh npm install ``` ## ビルド ```sh npx tsc ``` ##…

Details

Author
AkhrHysd
Downloads
166
Categories
Other

- Provides Pokémon info via standard MCP protocol
- Integrates with the free POKEAPI (pokeapi.co)
- Uses JSON‑RPC 2.0 communication over stdio
- Schema validation with zod for input/output
- Single tool getPokemonInfo for all queries

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-pokeapi-server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with npm install, build with npx tsc, then start the server with npx ts-node src/index.ts. From an MCP client, send JSON‑RPC requests over stdin/stdout—first list_tools to discover the tool, then call_tool with the tool name getPokemonInfo and an argument nameOrId (a Pokémon name or numeric ID).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-pokeapi-server": {
            "mcp-pokeapi-server": {
                "command": "npx",
                "args": [
                    "tsc"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-pokeapi-server": {
        "command": "npx",
        "args": [
            "tsc"
        ]
    }
}

mcp-pokeapi-server

POKEAPI と連携し、MCP(Model Context Protocol)仕様でポケモン情報を取得できるサーバーです。

概要

- MCP プロトコル(JSON-RPC 2.0 over stdio)で、LLM アプリや MCP クライアントからポケモン情報取得ツールを提供します。
- POKEAPI(https://pokeapi.co/)を利用。
- スキーマバリデーションにはzodを使用。

セットアップ

npm install

ビルド

npx tsc

開発用起動(ts-node)

npx ts-node src/index.ts

MCP クライアントからの利用例

MCP クライアントや LLM アプリから、標準入力/出力で JSON-RPC リクエストを送信します。

1. ツール一覧取得(list_tools)

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "list_tools"
}

レスポンス例

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": [
      {
        "name": "getPokemonInfo",
        "description": "ポケモン名またはIDから、POKEAPIでポケモン情報を取得します。",
        "input_schema": { ... },
        "output_schema": { ... }
      }
    ]
  }
}

2. ポケモン情報取得(call_tool)

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "call_tool",
  "params": {
    "name": "getPokemonInfo",
    "arguments": {
      "nameOrId": "pikachu"
    }
  }
}

レスポンス例

{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "content": [
      {
        "type": "json",
        "data": {
          "name": "pikachu",
          "id": 25,
          "height": 4,
          "weight": 60,
          "types": ["electric"]
        }
      }
    ]
  }
}

テスト

npm test

---

参考

- MCP 公式ドキュメント
- POKEAPI 公式
- Zenn: MCP 入門

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.