amanahfy-ai-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@amanahfy-ai-mcpLook up the campaign gaza-100k-in-72hrs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Amanahfy AI MCP Server
A production-ready Model Context Protocol (MCP) server that provides AI tools & resources with access to Amanahfy APIs & services. Built with TypeScript and following clean architecture principles.
π Features
Dual Transport Support: STDIO (Claude Desktop) and HTTP (testing/development)
Clean Architecture: 5-layer architecture with separation of concerns
CLI Tools: Command-line interface for direct API testing
Resource Access: URI-based resource references (
campaign://slug,ip://address)Type Safety: Full TypeScript implementation with Zod validation
Related MCP server: anchain-data-mcp
π Prerequisites
Node.js (>=18.0.0): Download
Git: For version control
Claude Desktop: For MCP integration (Optional)
β‘ Quick Start
1. Installation
# Clone the repository
git clone <your-repo-url>
cd amanahfy-ai-mcp
# Install dependencies
npm install
# Build the project
npm run build2. Claude Desktop Integration
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"amanahfy-ai-mcp": {
"command": "node",
"args": [
"C:\\path\\to\\campaign-agent-mcp-server\\dist\\index.js"
],
"env": {
"TRANSPORT_MODE": "stdio"
}
}
}
}3. Test the Connection
Restart Claude Desktop completely, then ask Claude:
"Look up the campaign gaza-100k-in-72hrs"
"What's the location of IP 8.8.8.8?"
π» CLI Usage
Test functionality directly from the command line:
Campaign Commands
# Get campaign details
npm run cli -- get-campaign-details gaza-100k-in-72hrs
# With custom options
npm run cli -- get-campaign-details gaza-100k-in-72hrs --timeout 5000 --retries 1ποΈ Architecture
The server follows a clean 5-layer architecture:
βββ CLI Layer (src/cli/) # Command-line interfaces
βββ Tools Layer (src/tools/) # MCP tool definitions
βββ Resources Layer (src/resources/) # MCP resource handlers
βββ Controllers Layer (src/controllers/) # Business logic
βββ Services Layer (src/services/) # External API integration
βββ Utils Layer (src/utils/) # Shared utilitiesβοΈ Configuration
Environment Variables
Create a .env file in the project root:
# Transport Configuration
TRANSPORT_MODE=stdio
PORT=8000
DEBUG=false
NODE_ENV=production
# API Configuration
AMANAHFY_API_BASE=https://api.amanahfy.com/api
# Optional API Keys
# IPAPI_API_TOKEN=your_api_token_hereAvailable Scripts
# Development
npm run build # Compile TypeScript
npm run dev:stdio # Run in STDIO mode with debug
npm run dev:http # Run in HTTP mode with debug
# MCP Server Modes
npm run mcp:stdio # STDIO transport (for Claude Desktop)
npm run mcp:http # HTTP transport (for testing)
# Testing & Development
npm run cli # CLI mode
npm run test # Run tests
npm run lint # Run ESLint
npm run format # Format with Prettier
# Debugging
npm run mcp:inspect # Launch with MCP Inspectorπ§ͺ Testing & Development
MCP Inspector (Recommended)
Test your MCP server with the official inspector:
# Launch server with inspector
npm run mcp:inspect
# Then open: http://localhost:3000/mcpManual Testing
# Test HTTP mode
npm run mcp:http
# Test specific endpoints
curl http://localhost:8000/mcpCLI Testing
# Test campaign lookup
npm run cli -- get-campaign-details gaza-100k-in-72hrs
# Test IP lookup
npm run cli -- get-ip-details 8.8.8.8π§ Troubleshooting
Common Issues
"Not valid JSON" error
Ensure no console output is interfering with STDIO mode
Check that
TRANSPORT_MODE=stdioin Claude Desktop config
Module not found errors
Run
npm run buildafter any code changesVerify all dependencies are installed:
npm install
API timeout errors
Check network connectivity
Increase timeout values in tool parameters
Verify API endpoints are accessible
Claude Desktop connection issues
Use absolute paths in config
Restart Claude Desktop completely after config changes
Check Claude Desktop logs for detailed error messages
Debug Mode
Enable detailed logging:
DEBUG=true
NODE_ENV=developmentNeed help? Open an issue or check the troubleshooting section above.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI assistants to perform IP geolocation and nearby place searches using the Amap (Gaode Maps) API in China.Last updated26

anchain-data-mcpofficial
AlicenseAqualityDmaintenanceEnables AI assistants to access AnChain.AI blockchain intelligence APIs for risk assessment, sanctions screening, and transaction analysis on blockchain addresses and transactions.Last updated206AGPL 3.0- AlicenseAqualityAmaintenance23 developer & data API tools for AI agents - IP/DNS/WHOIS/SSL lookups, web scraping & screenshots, text AI (summarize, translate, sentiment, grammar, redact), and dev utilities (hash, UUID, QR, JWT, cron, IBAN/VAT/email validation, breach check).Last updated23MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to perform IP geolocation, proxy detection, and domain WHOIS lookups using IP2Location.io and IP2WHOIS data.Last updated5MIT
Related MCP Connectors
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
60+ Meta Ads tools for AI agents: audits, campaign management, audiences and CAPI tracking.
SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ramaibrm/amanahfy-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server