KosmoKrator

other

Ipstack MCP Integration for OpenAI Agents SDK

Connect Ipstack to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write API key auth

Connect Ipstack to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Ipstack MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-ipstack": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=ipstack",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=ipstack --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Ipstack instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Ipstack Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Ipstack integration catalog.

MCP toolSource functionTypeDescription
integration__ipstack__ipstack_lookup_ip ipstack.ipstack_lookup_ip Read Look up geolocation data for a single IP address using IPstack. Returns country, region, city, coordinates, and more.
integration__ipstack__ipstack_lookup_bulk ipstack.ipstack_lookup_bulk Read Look up geolocation data for multiple IP addresses at once (up to 50). Returns an array of geolocation results.
integration__ipstack__ipstack_check_location ipstack.ipstack_check_location Read Check if an IP address is located in a specific country or region. Returns geolocation data with a location match indicator.
integration__ipstack__ipstack_get_timezone ipstack.ipstack_get_timezone Read Get timezone information for an IP address, including timezone ID, current time, and UTC offset.
integration__ipstack__ipstack_get_currency ipstack.ipstack_get_currency Read Get local currency information for an IP address, including currency code, name, symbol, and exchange rates.
integration__ipstack__ipstack_get_connection ipstack.ipstack_get_connection Read Get connection and ISP information for an IP address, including ASN, ISP name, and organization.
integration__ipstack__ipstack_get_current_user ipstack.ipstack_get_current_user Read Detect and geolocate the current requesting IP address. Returns the caller's own IP geolocation data.

Related Ipstack Pages