LeadMagic MCP Server
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.
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., "@LeadMagic MCP Serverfind email addresses for sales managers at Salesforce"
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.
๐ LeadMagic MCP Server
This local MCP server is deprecated. LeadMagic now ships a hosted MCP server with OAuth sign-in (no API keys in your client) and the full current tool surface โ people/company/jobs search, enrichment, ads research, and bulk:
https://mcp.leadmagic.io/mcp
Setup for every client (Claude, Claude Code, ChatGPT, Codex, Cursor, and more): leadmagic.io/docs/mcp/setup
Agent skills:
npx skills add LeadMagic/leadmagic-skillsClaude Code plugin: LeadMagic/leadmagic-claude-plugin ยท Cursor plugin: LeadMagic/leadmagic-cursor-plugin
The npm package below still works against the REST API with an X-API-Key, but it is no longer maintained and misses newer tools. Please migrate to the hosted 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.
Related MCP server: fetchcraft-mcp
๐ 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.
# ๐ฅ Using npx (no installation required)
npx leadmagic-mcp-server installโจ 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:
npx leadmagic-mcp-server install๐ 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:
# ๐ Run directly with your API key
LEADMAGIC_API_KEY=your-key npx leadmagic-mcp-server
# ๐ Run the interactive installer
npx leadmagic-mcp-server install
# โ Check available commands
npx leadmagic-mcp-server --help๐ ๏ธ 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
"Find the email for John Doe at Microsoft"
"Validate the email john@acme.com"
"Find personal email for B2B profile https://linkedin.com/in/johndoe"๐ข Company Intelligence
"Search for Tesla company information"
"Get funding information for Stripe"
"Find employees at OpenAI who work in engineering"๐ผ Job & Recruitment
"Find software engineer jobs at tech companies"
"Search for product manager roles in San Francisco"
"Find mobile number for this B2B profile"๐ฑ Competitive Analysis
"Search for Google Ads from competitor.com"
"Find Meta ads for company XYZ"
"Get B2B advertising campaigns for stripe.com"๐ง Development Setup
๐ Prerequisites
๐ฆ Node.js 18.0.0 or higher
๐ LeadMagic API key from leadmagic.io
๐ป Local Development
# ๐ฅ Clone the repository
git clone https://github.com/LeadMagic/leadmagic-mcp.git
cd leadmagic-mcp
# ๐ฆ Install dependencies
npm install
# ๐ Create environment file
echo "LEADMAGIC_API_KEY=your-api-key-here" > .env
# ๐ Start development server
npm run dev
# ๐๏ธ Build for production
npm run build
# โ
Run validation
npm run validate๐ Testing with MCP Inspector
# ๐ Start the MCP inspector
npm run inspector
# ๐ Open the provided URL in your browser to test all tools๐ 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
โโโ src/
โ โโโ index.ts # ๐ Main entry point and CLI command handling
โ โโโ server.ts # ๐ MCP server implementation with all 19 tools
โ โโโ client.ts # ๐ LeadMagic API client wrapper
โ โโโ types.ts # ๐ TypeScript types and Zod schemas
โ โโโ install.tsx # ๐จ The new interactive installer (React/Ink)
โโโ dist/ # ๐ฆ Compiled JavaScript output
โโโ .env.example # ๐ Environment configuration example
โโโ README.md # ๐ This file๐ API Reference
๐ค Field Naming Convention
All fields use snake_case (matching LeadMagic API):
{
"first_name": "John",
"company_name": "Acme Corp",
"email_status": "valid"
}๐ Authentication
Include your API key in requests:
X-API-Key: your-leadmagic-api-keyโฑ๏ธ Rate Limits
๐ค Profile Search: 300 requests/minute
๐ Other endpoints: Standard rate limits apply
โ Error Handling
Consistent error format across all endpoints:
{
"error": "Bad Request",
"message": "API key is missing or invalid."
}๐ 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 official LeadMagic OpenAPI specification for 100% API accuracy
๐ Star us on GitHub โข ๐ Report Issues โข ๐ก Request Features
Made with โค๏ธ by the LeadMagic team
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
- SalesQLOAuthcom.salesql
Find verified B2B emails and phone numbers; search and enrich people and companies for prospecting.
B2B lead generation, email verification, company enrichment, and agentic GTM Ops.
B2B sales intelligence: find companies, extract leads, enrich contacts with emails/phones.
Search B2B contacts, enrich verified emails and phone numbers, and export results.
Related MCP Servers
AlicenseAqualityFmaintenanceEnables AI tools to search and enrich B2B leads, including finding professional emails, company profiles, and filtering people and companies by various criteria.5227MIT- FlicenseNot gradedqualityCmaintenanceEnables B2B research by finding verified work emails, extracting contacts, detecting tech stacks, and profiling DNS and SaaS, all through a suite of MCP tools.-
- AlicenseAqualityDmaintenanceEnables business analysis, compatibility checking, and marketing campaign creation using the B2Brilliant API. Tools allow discovering and refining business information from URLs and generating personalized outreach campaigns.721MIT
- AlicenseAqualityBmaintenanceProvides 25 tools to enrich company, person, contact, school, and job data via the Enrich Layer API, enabling lookups, profiles, and contact discovery.2534MIT
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/LeadMagic/leadmagic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server