Skip to content

ktmcp-cli/abstractapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI."

Peter Steinberger, Founder of OpenClaw Watch on YouTube (~2:39:00) | Lex Fridman Podcast #491

AbstractAPI CLI

Production-ready CLI for the AbstractAPI Geolocation API. Look up IP addresses, detect VPNs, and get timezone information directly from your terminal.

Disclaimer: This is an unofficial CLI tool and is not affiliated with, endorsed by, or supported by Abstract API.

Installation

npm install -g @ktmcp-cli/abstractapi

Configuration

abstractapi config set --api-key YOUR_API_KEY

Get your API key at abstractapi.com.

Usage

Configuration

# Set API key
abstractapi config set --api-key YOUR_API_KEY

# Show configuration
abstractapi config list

# Get a specific config value
abstractapi config get apiKey

Geolocation

# Look up an IP address
abstractapi geolocate lookup 8.8.8.8
abstractapi geolocate lookup 1.1.1.1

# Look up your own current IP
abstractapi geolocate current

VPN Detection

# Detect if an IP is using a VPN or proxy
abstractapi vpn detect 8.8.8.8

# Check your own IP
abstractapi vpn detect

Timezone

# Get timezone for an IP
abstractapi timezone get --ip 8.8.8.8

# Get timezone by location name
abstractapi timezone get --location "London"
abstractapi timezone get --location "New York"

# Get timezone for your current IP
abstractapi timezone current

JSON Output

All commands support --json for machine-readable output:

# Look up IP as JSON
abstractapi geolocate lookup 8.8.8.8 --json

# Pipe to jq
abstractapi geolocate lookup 1.1.1.1 --json | jq '{city, country, timezone}'

# Get your timezone as JSON
abstractapi timezone current --json | jq '.timezone'

Examples

# Find where a suspicious IP is located
abstractapi geolocate lookup 192.168.1.1

# Check if your VPN is working
abstractapi vpn detect

# Find timezone for a remote meeting participant
abstractapi timezone get --ip 123.456.789.0

# Script: Get country code for multiple IPs
for ip in 8.8.8.8 1.1.1.1 9.9.9.9; do
  echo -n "$ip: "
  abstractapi geolocate lookup $ip --json | jq -r '.country_code'
done

License

MIT


Part of the KTMCP CLI project — replacing MCPs with simple, composable CLIs.


Support KTMCP

If you find this CLI useful, we'd greatly appreciate your support! Share your experience on:

  • Reddit
  • Twitter/X
  • Hacker News

Incentive: Users who can demonstrate that their support/advocacy helped advance KTMCP will have their feature requests and issues prioritized.

Just be mindful - these are real accounts and real communities. Authentic mentions and genuine recommendations go a long way!

Support This Project

If you find this CLI useful, we'd appreciate support across Reddit, Twitter, Hacker News, or Moltbook. Please be mindful - these are real community accounts. Contributors who can demonstrate their support helped advance KTMCP will have their PRs and feature requests prioritized.

About

CLI for Abstract API Geolocation - Kill The MCP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •