Skip to main content
Glama
didacusdev

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


Install Server
A
license - permissive license
B
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Tools

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/didacusdev/MCP-Servers'

If you have feedback or need assistance with the MCP directory API, please join our Discord server