Enables searching Facebook Ads as part of Meta's advertising platform for competitive analysis and ad intelligence.
Enables searching and analyzing Google Ads campaigns by company, providing access to advertising intelligence data.
Enables searching Instagram Ads as part of Meta's advertising platform for competitive analysis and ad intelligence.
Enables searching and analyzing Meta (Facebook/Instagram) Ads and B2B advertising campaigns, providing detailed ad information and competitive intelligence.
š LeadMagic MCP Server
ā” The Ultimate Model Context Protocol Server for B2B Data Enrichment
Seamlessly integrate LeadMagic's complete API suite with Claude, Cursor, Windsurf, and all MCP-compatible AI tools
šÆ 19 Powerful Tools ⢠š„ Zero Configuration ⢠┠One-Line Setup ⢠š”ļø Enterprise Security
š Table of Contents
šÆ Access all 19 LeadMagic API endpoints through the Model Context Protocol for seamless integration with Claude, Cursor, Windsurf, Continue.dev, and other MCP-compatible AI tools.
š Super Easy Installation
ā” Option 1: Interactive Installer (Recommended)
The easiest way to get started - works on macOS, Windows, and Linux. Our new interactive installer, built with React and Ink, makes setup a breeze.
⨠The installer will:
ā Validate your API key in real-time and show your remaining credits.
ā Automatically detect and configure your preferred AI tool (Claude, Cursor, VS Code, etc.).
ā Create all necessary config files and a local
.envfor development.ā Provide usage examples and helpful links.
š± Option 2: Quick Manual Setup
If you prefer manual setup or are using a client like Aider, you can add the server configuration directly to your client's settings file. The interactive installer provides copy-pasteable snippets for this.
Run the installer and choose the "Other (Manual Setup)" option:
š Get Your API Key
š Visit LeadMagic Dashboard
š Sign up for free (if needed)
š Generate your API key
š Paste it into the interactive installer when prompted.
ā” npx Usage (Zero Installation)
You can use the server without installing, which is great for quick tests or containerized environments:
š ļø Available Tools
š Core Operations (3 tools)
š³
get_credits- Check API credit balanceā
validate_email- Validate email deliverability and get company infoš§
find_email- Find verified email addresses by name and company
š¢ Profile & Company Intelligence (5 tools)
š¤
search_profile- Get full B2B profile details (300 req/min)š
search_company- Search companies by domain, name, or profile URLš±
find_mobile- Find mobile phone numbers from profiles/emailsš
email_to_profile- Find B2B profile URLs from work emailsš°
get_company_funding- Get funding, financials, and competitor data
āļø Advanced Email Finding (2 tools)
šØ
find_personal_email- Find personal emails from B2B profilesš
social_to_work_email- Find work emails from social profiles
š¼ Job & Employee Intelligence (5 tools)
š
find_jobs- Search job postings with advanced filtersš
find_role- Find specific roles within companiesš„
find_employees- Find employees of specific companiesš
get_job_countries- Get available job search countriesš
get_job_types- Get available job types for filtering
š± Advertisement Intelligence (4 tools)
š
search_google_ads- Search Google Ads by companyš
search_meta_ads- Search Meta (Facebook/Instagram) Adsš
search_b2b_ads- Search B2B advertising campaignsš
get_b2b_ad_details- Get detailed B2B ad information
š” Usage Examples
Once installed, you can use natural language commands in your AI tool:
š§ Email Operations
š¢ Company Intelligence
š¼ Job & Recruitment
š± Competitive Analysis
š§ Development Setup
š Prerequisites
š¦ Node.js 18.0.0 or higher
š LeadMagic API key from leadmagic.io
š» Local Development
š Testing with MCP Inspector
š Supported MCP Clients
Client | Installation | Status | Notes |
š¤ Claude Desktop | Interactive installer or manual config | ā Fully Supported | Official Anthropic client |
šÆ Cursor (Cline) | Interactive installer or VS Code settings | ā Fully Supported | Requires Cline extension |
š Windsurf | Interactive installer or manual config | ā Fully Supported | Codeium's AI IDE |
š Continue.dev | Interactive installer or config file | ā Fully Supported | Open source coding assistant |
š» VS Code (Cline) | VS Code settings.json | ā Fully Supported | Requires Cline extension |
š» VS Code (Continue) | Continue extension config | ā Fully Supported | Requires Continue extension |
ā” Zed Editor | Interactive installer or settings | ā Fully Supported | Modern code editor |
š¤ Aider | Manual Configuration | ā Supported | AI pair programming in your terminal |
⨠Augment Code | Manual Configuration | ā Supported | AI coding assistant |
š Any MCP Client | Manual configuration | ā Supported | Standard MCP protocol |
šļø Architecture
š ļø Technology Stack
ā” Runtime: Node.js 18+
š Language: TypeScript with strict type checking
š MCP SDK: @modelcontextprotocol/sdk v1.0.0+
š HTTP Client: Axios with comprehensive error handling
ā Validation: Zod schemas for all API inputs/outputs
š§ Development: ESLint, Prettier, Jest for testing
š Project Structure
š API Reference
š¤ Field Naming Convention
All fields use snake_case (matching LeadMagic API):
š Authentication
Include your API key in requests:
ā±ļø Rate Limits
š¤ Profile Search: 300 requests/minute
š Other endpoints: Standard rate limits apply
ā Error Handling
Consistent error format across all endpoints:
š Credit Consumption
Endpoint | Credits | Notes |
š³ | 0 | Free to check |
ā
| 0.05 | Very cost-effective |
š§ | 1 | Standard rate |
š± | 5 | Only if found |
š¤ | 1 | Rate limited (300/min) |
š | 10 | Higher cost for reverse lookup |
š° | 4 | Premium intelligence |
š¼ | 1 per job | Based on results |
š | 1 per ad | Based on ads found |
š All others | 1-2 | Standard rates |
š Security & Best Practices
ā
No API keys in code - Always use environment variables
ā
Type-safe requests - Full TypeScript coverage with Zod validation
ā
Error handling - Comprehensive error catching and user-friendly messages
ā
Rate limiting - Respects LeadMagic API rate limits
ā
Secure defaults - Production-ready configuration out of the box
ā
Interactive installer - No manual config file editing required
šÆ Installation Matrix
Choose your installation method based on your setup:
Scenario | Command | Best For |
š First time user |
| Easiest setup |
š¤ Claude Desktop | Interactive installer ā Option 1 | Most popular |
šÆ Cursor/VS Code | Interactive installer ā Option 2/5 | Developers |
š Multiple clients | Interactive installer ā Option 7 | Power users |
ā” Quick test |
| Testing |
š» Local development | Clone repo + | Contributors |
š¤ Support & Resources
š API Documentation: docs.leadmagic.io
š Official Website: leadmagic.io
š Dashboard: app.leadmagic.io
š Support: support@leadmagic.io
š Issues: GitHub Issues
š¬ Community: Join our Discord
š Source Code: GitHub Repository
š License
MIT License - see the LICENSE file for details.
šāāļø Contributing
We welcome contributions! Here's how to get started:
š“ Fork the repository
šæ Create a feature branch:
git checkout -b feature/new-feature⨠Make your changes and add tests
ā Run validation:
npm run validateš¾ Commit your changes:
git commit -am 'Add new feature'š¤ Push to the branch:
git push origin feature/new-featureš Submit a pull request
š Bug Reports
Found a bug? Please open an issue with:
š Clear description of the issue
š Steps to reproduce
š» Your environment details
š Expected vs actual behavior
š” Feature Requests
Have an idea? Request a feature with:
š Clear description of the feature
šÆ Use case and benefits
š Any implementation ideas
š Updates & Changelog
v1.0.1 (Latest) - June 27, 2025
šØ Redesigned README with professional and impactful header
š¦ Enhanced package.json with better description and keywords
šÆ Improved branding and visual presentation
š§ Documentation polish and terminology consistency
š·ļø Added enhanced badges with security verification
š Overall professional presentation improvements
v1.0.0 - June 27, 2025
⨠Interactive installer for all major AI tools
ā Support for Claude Desktop, Cursor, Windsurf, Continue.dev, VS Code, Zed
š§ All 19 LeadMagic API endpoints implemented
šÆ Zero-config npx usage
š Enhanced security and error handling
š Comprehensive documentation
š Built with the
š Star us on GitHub ⢠š Report Issues ⢠š” Request Features
Made with ā¤ļø by the LeadMagic team