AbuseIpDB MCP Server
A Model Context Protocol (MCP) server implementation that provides seamless integration with the AbuseIPDB API for IP reputation checking and abuse report management.
AbuseIPDB MCP Server
A Model Context Protocol (MCP) server implementation that provides seamless integration with the AbuseIPDB API for IP reputation checking and abuse report management.
Overview
This MCP server enables AI assistants and automated systems to query AbuseIPDB's threat intelligence database, allowing you to check IP addresses for malicious activity, retrieve abuse confidence scores, and access detailed historical report data through a standardized protocol interface.
Features
- IP Reputation Checks - Query any IPv4 or IPv6 address for abuse reports
- Confidence Scoring - Get abuse confidence scores (0-100) based on report frequency and severity
- Detailed Reporting - Access comprehensive abuse report metadata and categories
- Historical Data - Query abuse reports within configurable time windows (up to 365 days)
- Flexible Output - Toggle between concise summaries and verbose detailed responses
- Standards-Based - Built on the Model Context Protocol for seamless integration
Prerequisites
- Python: 3.13 or higher
- AbuseIPDB API Key: Register for a free API key
Installation
1. Clone the Repository
git clone https://github.com/Salmanwz/mcp-abuseipdb.git
cd mcp-abuseipdb
2. Install UV Package Manager
curl -LsSf https://astral.sh/uv/install.sh | sh
3. Install Dependencies
uv add mcp[cli] httpx
Configuration
Option 1: Environment Variable (Standalone Usage)
export ABUSEIPDB_API_KEY="your_api_key_here"
Option 2: Claude Desktop Integration
Add the following configuration to your Claude Desktop config file (claude_desktop_config.json):
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"abuseipdb": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-abuseipdb",
"run",
"abusedb.py"
],
"env": {
"ABUSEIPDB_API_KEY": "your_api_key_here"
}
}
}
}
Important: Replace /absolute/path/to/mcp-abuseipdb with the actual path and your_api_key_here with your API key.
Usage
Starting the Server (Standalone)
uv run abusedb.py
Available Tools
check - IP Address Reputation Lookup
Queries AbuseIPDB for abuse reports associated with a given IP address.
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ipAddress | string | ✅ Yes | - | IPv4 or IPv6 address to check |
maxAgeInDays | integer | ❌ No | 30 | Maximum age of reports (1-365 days) |
verbose | boolean | ❌ No | false | Include detailed report breakdowns |
Example Requests:
# Basic check - last 30 days
{
"ipAddress": "1.2.3.4"
}
# Check with custom time window
{
"ipAddress": "1.2.3.4",
"maxAgeInDays": 90
}
# Verbose output with full details
{
"ipAddress": "1.2.3.4",
"maxAgeInDays": 90,
"verbose": true
}
Response Structure:
{
"data": {
"ipAddress": "1.2.3.4",
"abuseConfidenceScore": 75,
"totalReports": 42,
"lastReportedAt": "2025-10-13T14:23:01+00:00",
"isWhitelisted": false,
"countryCode": "US",
"usageType": "Data Center/Web Hosting/Transit",
"isp": "Example Hosting Inc",
"domain": "example-host.com",
"reports": [...] // Only included when verbose=true
}
}
Use Cases
- Security Operations: Integrate IP reputation checks into SOC workflows
- Incident Response: Quickly assess threat levels during investigations
- Threat Intelligence: Enrich security alerts with abuse data
- Network Monitoring: Automate suspicious IP detection and blocking
- Log Analysis: Cross-reference connection logs with known malicious IPs
API Rate Limits
Free tier API keys are limited to 1,000 checks per day. Upgrade to a premium plan for higher limits.
Troubleshooting
API Key Issues
# Verify your API key is set
echo $ABUSEIPDB_API_KEY
# Test connectivity
curl -G https://api.abuseipdb.com/api/v2/check \
--data-urlencode "ipAddress=8.8.8.8" \
-H "Key: $ABUSEIPDB_API_KEY"
Claude Desktop Connection
- Verify the config file path and JSON syntax
- Restart Claude Desktop after configuration changes
- Check the MCP server logs for connection errors
Development
Project Structure
mcp-abuseipdb/
├── abusedb.py # Main MCP server implementation
├── pyproject.toml # UV/Python dependencies
├── README.md # This file
└── LICENSE # License information
Running Tests
# Add test dependencies
uv add pytest pytest-asyncio httpx
# Run tests
uv run pytest
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Security
This server handles sensitive threat intelligence data. Best practices:
- Never commit API keys to version control
- Store API keys in environment variables or secure vaults
- Use HTTPS for all API communications (enforced by default)
- Implement rate limiting in production deployments
- Monitor API usage for anomalies
Resources
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built on the Model Context Protocol
- Powered by AbuseIPDB
- Uses UV for dependency management
Note: This is an unofficial implementation and is not affiliated with or endorsed by AbuseIPDB.
संबंधित सर्वर
Chess Stats
An MCP server that provides chess statistics for any player.
MCP Weather Server
Provides real-time weather information and forecasts using the OpenWeatherMap API.
Soccerdata MCP Server
Provides real-time football match information from the SoccerDataAPI using natural language.
MCP HUB
The Ultimate Control Plane for MCP Unlock the full power of Model Context Protocol with zero friction. One-Click GPT Integration: Bridge the gap between MCP servers and ChatGPT/LLMs instantly. No more manual config hunting. Pro-Level Orchestration: Manage, monitor, and toggle multiple MCP tools from a single, intuitive dashboard. Secure by Design: Built-in support for complex auth flows and 2FA, making enterprise-grade tool integration seamless. Streamlined Debugging: Test queries and inspect tool responses in real-time without leaving the hub. Stop wrestling with JSON configs. Start building agentic workflows that actually work.
Curve MCP Server
Pool data, swap rates, and liquidity info on Curve Finance.
RunDida
8 running tools for AI agents — 86 calculators, marathon data, pace/HR/VO2max calculations.
MCP Epic Free Games
Provides access to information about free games on the Epic Games Store.
Monzo
Access and manage your Monzo banking data, allowing you to check balances and view transactions.
N.I.N.A. Advanced API
Control the N.I.N.A. (Nighttime Imaging 'N' Astronomy) software through its Advanced API.
observability-mcp
One MCP server that connects to any observability backend through pluggable connectors, normalizes the data, adds intelligent analysis, and provides a web UI for configuration.