MCP Servers (OnePiece & Geolocalizar)

Integrations

  • Used to make HTTP requests to external APIs, enabling the MCP server to fetch One Piece character data and geolocation information for IP addresses.

  • Required runtime environment for the MCP server, with version 18 or higher needed.

  • Package manager used for installing dependencies, with version 9 or higher required.

MCP 服务器 (OnePieceServer 和地理定位)

该项目包含两个使用@modelcontextprotocol/sdk开发的 MCP 服务器。每个都公开了一个可由 MCP 兼容的 AI 客户端集成的有用工具。


📁 内容

  • onePiece.ts:用于查询海贼王角色的 MCP 服务器
  • geolocalizar.ts:用于对公共 IP 地址进行地理定位的 MCP 服务器

⚙️ 要求

  • 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通过stdinstdout进行通信,从而允许从 CLI 轻松执行或与 MCP 客户端集成。


🧑‍💻作者

Diego Rodríguez开发
✉️ contacto@diegorodriguez.dev


You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

两个 MCP 服务器的集合,可以查询海贼王动漫人物并对公共 IP 地址进行地理定位。

  1. 📁 内容
    1. ⚙️ 要求
      1. 📦安装依赖项
    2. 🏴‍☠️ OnePieceServer MCP
      1. 📄 描述
      2. 🚀 运行
      3. 🛠 暴露的工具: one_piece
      4. 🌐 使用的 API
    3. 🌍 地理定位 MCP
      1. 📄 描述
      2. 🚀 运行
      3. 🛠 公开工具: geolocalizar
      4. 🔐 验证
    4. 📁 项目结构
      1. 🧪 开发
        1. 🧑‍💻作者

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            MCP server for querying the Shodan API and Shodan CVEDB. This server provides tools for IP lookups, device searches, DNS lookups, vulnerability queries, CPE lookups, and more.
            Last updated -
            7
            663
            18
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            MCP server for maigret, a powerful OSINT tool that collects user account information from various public sources. This server provides tools for searching usernames across social networks and analyzing URLs.
            Last updated -
            19
            63
            JavaScript
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A lightweight mcp server that tells you exactly where you are.
            Last updated -
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            An MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.
            Last updated -
            1
            Python
            Apache 2.0

          View all related MCP servers

          ID: lfyfcqv3fg