Skip to main content
Glama
MCP Servers (OnePiece & Geolocalizar)

MCP Servers (OnePiece & Geolocalizar)

by didacusdev

MCP サーバー (OnePieceServer & Geolocate)

このプロジェクトには@modelcontextprotocol/sdkで開発された 2 つの MCP サーバーが含まれています。それぞれ、MCP 互換の AI クライアントに統合できる便利なツールを公開します。


📁 コンテンツ

  • onePiece.ts: ワンピースのキャラクターを照会するためのMCPサーバー

  • geolocalizar.ts: パブリック IP アドレスを地理位置情報として特定する MCP サーバー


Related MCP server: MyAnimeList MCP Server

⚙️ 要件

  • Node.js ≥ 18

  • npm ≥ 9

📦 依存関係をインストールする

npm install @modelcontextprotocol/sdk axios zod
npm install -D tsx

🏴‍☠️ OnePieceServer MCP

📄 説明

OnePieceServer使用すると、アニメ/マンガ「ワンピース」のキャラクターに関する情報を、個別に、または利用可能なリスト全体から表示できます。

🚀 実行

npx tsx onePiece.ts

MCP インスペクターを使用することもできます。

npx -y @modelcontextprotocol/inspector npx -y tsx onePiece.ts

🛠 公開ツール: one_piece

  • 入力:

    { "id": "1" }

    完全なリストについては以下をご覧ください:

    { "id": "todos" }
  • 出力:

    {
      "content": [
        {
          "type": "text",
          "text": "Información del personaje: { ... }"
        }
      ]
    }

🌐 使用されるAPI

  • https://onepieceapi-50cm.onrender.com/personaje/{id}

  • https://onepieceapi-50cm.onrender.com/personajes


🌍 MCP の位置を特定

📄 説明

Geolocalizar使用すると、パブリック IP (IPv4) アドレスからおおよその地理情報を取得できます。

🚀 実行

npx tsx main.ts

または、MCP Inspector と一緒に使用します。

npx -y @modelcontextprotocol/inspector npx -y tsx main.ts

🛠 公開ツール: geolocalizar

  • 入力:

    { "ip": "8.8.8.8" }
  • 出力:

    {
      "content": [
        {
          "type": "text",
          "text": "{ \"ip\": \"8.8.8.8\", \"country\": \"United States\", ... }"
        }
      ]
    }

🔐 検証

zod使用して、入力が IPv4 形式の有効な IP であることを確認します。


📁 プロジェクト構造

.
├── geolocalizar.ts   # MCP Geolocalizar
├── onePiece.ts       # MCP OnePieceServer
├── package.json      # Archivo de configuracion de NPM
└── README.md         # Este archivo

🧪 開発

両方のサーバーはStdioServerTransportを使用してstdinおよびstdoutを介して通信するため、CLI からの簡単な実行や MCP クライアントとの統合が可能になります。


🧑‍💻 著者

ディエゴ・ロドリゲスが開発した
✉️ contacto@diegorodriguez.dev


Available Tools

1 tool
one_pieceC

Herramienta para buscar informacion sobre personajes de One Piece

Inputs: id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear, distinct purpose focused on searching One Piece character information.

    Naming Consistency5/5

    With only one tool, naming consistency is inherently perfect. The tool name 'one_piece' follows a clear snake_case pattern and directly reflects its domain, though there is no pattern to evaluate across multiple tools.

    Tool Count2/5

    The server has only one tool, which is too few for its apparent scope covering both One Piece and Geolocalizar domains. This minimal toolset severely limits functionality and suggests an incomplete implementation for the server's stated purpose.

    Completeness1/5

    The tool surface is severely incomplete. The server name suggests coverage of both One Piece and Geolocalizar domains, but only provides a single tool for One Piece character search, with no tools for Geolocalizar and no CRUD/lifecycle operations for either domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers