Server URL
Authentication
The MCP server uses the sameAPI-Key authentication as the REST API. Pass your API key in the headers section of your MCP client configuration. The key is forwarded to the API on every tool call, so credits and rate limits apply exactly as they do for direct API calls.
Setup
Claude Code
Add to your project’s.mcp.json:
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Cursor
Add to your editor’s MCP settings with the same URL and API key header.Available Tools
The MCP server exposes 9 tools that map directly to the Data Legion REST API endpoints. Credits are consumed the same way as direct API calls.Person
| Tool | Description | API Equivalent |
|---|---|---|
person_enrich | Look up a person by email, phone, name, LinkedIn, or other identifiers | POST /person/enrich |
person_search | Query people using SQL WHERE syntax | POST /person/search |
person_discover | Find people using natural language | POST /person/discover |
Company
| Tool | Description | API Equivalent |
|---|---|---|
company_enrich | Look up a company by domain, name, ticker, or LinkedIn | POST /company/enrich |
company_search | Query companies using SQL WHERE syntax | POST /company/search |
company_discover | Find companies using natural language | POST /company/discover |
Utilities
| Tool | Description | API Equivalent |
|---|---|---|
utility_clean | Normalize emails, phones, names, domains, and other fields | POST /utility/clean |
utility_hash_email | Hash an email address (SHA-256, SHA-1, MD5) for privacy-safe lookups | POST /utility/hash/email |
utility_validate | Validate data format and get cleaning suggestions | POST /utility/validate |
Example Conversations
Once connected, you can ask your AI assistant things like:- “Look up the person with email jane.doe@acme.com”
- “Find software engineers in San Francisco who worked at Google”
- “Enrich the company google.com”
- “Search for AI startups with more than 50 employees”
- “Clean and validate this contact: email john.doe+work@gmail.com, phone (555) 123-4567”
- “Hash the email john@example.com for a privacy-safe lookup”