aiwen -geoip
埃文IP定位MCP
claude mcp add --transport stdio ipfred-aiwen-mcp-server-geoip npx -y aiwen-mcp-server-geoip \ --env AIWEN_API_KEY="xxxxxx" \ --env IPV4_ACCURACY="city" \ --env IPV6_ACCURACY="city"
How to use
This MCP server provides a suite of IP geolocation and related intelligence endpoints powered by Aiwen IP Location data. The server exposes capabilities such as IP location lookup (city/district/street precision), current network IP retrieval with location, IP usage scene classification, WHOIS and AS information, host attributes, risk portrait, identity checks, and IPv4 industry classification. When deployed via MCP, you can query these endpoints by supplying an IP address (where required) and receiving structured results including continent, country, city, district, street address, latitude/longitude, organization, ISP, ASN, and more. To run it in your MCP host, configure the aiwen-iplocation server in your mcp host file using npx and provide the required environment variables to tailor precision and authentication.
Use cases include enriching traffic with precise geolocation for access control, fraud prevention, content localization, network analytics, and risk assessment. The environment variables let you control the IPv4/IPv6 precision levels (city, district, street) to match the API plan you’ve purchased, ensuring responses align with your desired granularity.
How to install
Prerequisites:
- Node.js and npm installed on the host
- Internet access to install npm packages
- An Aiwen API key (AIWEN_API_KEY) and awareness of the IPv4/IPv6 precision you intend to use
Step-by-step installation:
-
Verify prerequisites
- node -v
- npm -v
-
Prepare environment variables (replace placeholders with your actual values)
- AIWEN_API_KEY=your_api_key_here
- IPV4_ACCURACY=city # or district / street
- IPV6_ACCURACY=city # or district / street
-
Run the MCP server locally (example using npx directly)
- On first run: AIWEN_API_KEY=your_api_key_here IPV4_ACCURACY=city IPV6_ACCURACY=city npx -y aiwen-mcp-server-geoip
-
Integrate with MCP host configuration
- Add the aiwen-iplocation server to your MCP host JSON as shown in the mcp_config example.
- Use your host's environment to inject the AIWEN_API_KEY and precision settings as needed.
-
Verify operation
- Ensure the host can resolve and start the aiwen-iplocation MCP server and that queries return the expected fields (location, ISP, ASN, etc.).
Additional notes
Tips and notes:
- The server relies on the Aiwen API; ensure your API key is active and has the required permissions for geolocation and related data.
- IPV4_ACCURACY and IPV6_ACCURACY control the maximum precision returned for respective IP versions; set these to city, district, or street according to your plan.
- In MCP deployments, environment variables are typically injected via the mcpServers.env block; keep secrets secure and avoid committing actual keys in public repos.
- If you encounter rate limiting or authentication errors, verify the API key scope, usage quotas, and network access to Aiwen endpoints.
- The mcp_config structure expects a single server name under mcpServers; you can extend with additional Aiwen endpoints if supported by the underlying MCP package.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.