Your agent alreadyknows how to use this.
Person and company data your agent calls from Claude, Cursor, ChatGPT, Gemini, OpenClaw, or any MCP client. No glue code, no parsing: it works like a native tool.
Drop into your agent in two minutes
Claude, ChatGPT, Codex and Grok connect with your Data Legion sign-in, so there is no key to paste. Claude Code, Cursor, Gemini CLI and other coding tools take one block in their MCP config, like the .mcp.json here. Same API key, same credits.
{
"mcpServers": {
"datalegion": {
"type": "http",
"url": "https://api.datalegion.ai/mcp",
"headers": {
"API-Key": "YOUR_API_KEY"
}
}
}
}Native MCP tool surface
14 tools across person, company, utility, and reporting: exactly what your agent calls.
person_enrich
Enrich a person by email, phone, name, social URL, or other identifier.
person_search
Search people by filters on the record's field names, SQL against the people table, or a query object.
person_count
Count the people a search would match, rounded, without returning records. No credit cost.
person_discover
Find people from a plain-English query (Beta); Data Legion writes the search and returns it with the results.
company_enrich
Enrich a company by domain, name, LinkedIn, or ticker symbol.
company_search
Search companies by filters on the record's field names, SQL against the companies table, or a query object.
company_count
Count the companies a search would match, rounded, without returning records. No credit cost.
company_discover
Find companies from a plain-English query (Beta); Data Legion writes the search and returns it with the results.
utility_clean
Clean and normalize person or company fields. No credit cost.
utility_hash_email
Hash an email address (SHA-256, SHA-1, MD5) for privacy-preserving lookups. No credit cost.
utility_validate
Validate person or company fields and surface cleaning suggestions. No credit cost.
credits_balance
The team's remaining credits, per contract. No credit cost.
report_person
Report a data-quality issue with a person record (wrong, outdated, or misattributed value). No credit cost.
report_company
Report a data-quality issue with a company record (wrong, outdated, or misattributed value). No credit cost.
Enrich, search and utility tools are all available self-serve.
$ brew install datalegion-ai/tap/datalegion-cli
$ datalegion-cli login
# opens a sign-in link; confirm the code it shows
$ datalegion-cli person enrich \
--email jane.doe@example.com
{
"full_name": "Jane Doe",
"job_title": "VP of Engineering",
"company_name": "Acme Corp",
"city": "San Francisco",
...
}A native shell tool for AI coding agents
Install with Homebrew or pip. Claude Code, Cursor, OpenClaw, Cline, and Aider can call it as a shell tool with no extra wiring. JSON output to stdout, logs to stderr, built for scripts, pipelines, and agent loops.
CLI Setup GuideConnect with one message
Send this to any assistant or agent. It reads our agent guide, connects the way its host allows, and learns which tool answers which question.
- /agents/llms.txt Start here: which route your host supports.
- /agents/mcp.md MCP: which tool answers which question, and the rules.
- /agents/cli.md Command line: sign-in and commands.
- /auth.md Your own API key, approved once by the person.
I want to use Data Legion. Everything you need to connect to it and use it is here: https://www.datalegion.ai/agents/llms.txtWhat agents build with our data
Use cases that string our tools together. Paste a prompt into any assistant connected to Data Legion.
AI SDR enrichment loop
Hand your AI SDR a contact list. It enriches each row, scores fit against your ICP, drafts a personalized opener, and asks before sending.
Use Data Legion person enrich to look up each of these contacts by email: [paste emails]. For each match, list their name, title, company and LinkedIn URL. Flag the ones that fit this profile: [describe your ICP]. Draft a two-sentence opener for each fit and show me the drafts before sending anything.Recruiter shortlist agent
Recruiter agent reads a JD, calls person_search to build a shortlist, calls person_enrich for contact info, and drafts personalized outreach.
Read this job description: [paste JD]. Use Data Legion person search to find 25 people who match the role in [city, state]. Enrich the 10 strongest matches for contact details and draft a short, personal outreach note for each that references their current role.Org-mapping research agent
Research agent reads a company name, calls company_enrich for firmographics, then person_search to map the org chart by seniority and function.
Use Data Legion company enrich to look up [company domain] and summarize its size, industry and locations. Then use person search to list its directors and above, grouped by function and seniority, with each person's title.Person tools for your agents
Every product is a tool your agent can call
Person Enrichment API
Person lookups for your agents. Match by email, phone, LinkedIn, or name and get structured profiles back.
Person Search API
Build targeted lists with SQL queries. Power agent workflows with on-demand person search.
Person Discovery APIBeta
Find people using natural language queries. Describe who you’re looking for and get matched results.
Person Data License
Bulk data for RAG pipelines, fine-tuning, and vector stores. CSV, JSON, Parquet, or Delta with monthly refreshes.
Company tools for your agents
Company intelligence for account scoring, market mapping, and research agents
Company Enrichment API
Match and append company data to your records. 6 matching methods with confidence levels.
Company Search API
Query companies on demand with SQL-like filters. Up to 100 results per query.
Company Discovery APIBeta
Find companies using natural language queries. Describe what you're looking for and get matched results.
Company Data License
Bulk company data feeds delivered to your cloud storage. CSV, JSON, Parquet, or Delta with monthly refreshes.
Common Questions
What agent builders ask us most
Yes. The MCP server is a thin layer over the same REST API. The same API key, credits, and rate limits apply. Tool calls return structured JSON that the agent can parse and act on.
Tool calls use credits exactly as the matching REST endpoints do: one credit for each record returned, so a lookup with no match costs nothing. Self-serve credits cover the Enrichment, Search and Discover (Beta) tools; the count, credit balance, utility and reporting tools cost no credits.
In Claude, ChatGPT, Claude Code, Codex and Grok, add https://api.datalegion.ai/mcp as a connector and sign in with your Data Legion account; no key to paste. In other clients, add the server URL and your API-Key header to the MCP configuration. We have setup steps for Claude Code, Claude Desktop, Cursor, Gemini, ChatGPT, Codex, Grok, and OpenClaw in the docs.
Yes. An agent can sign in on your behalf by following https://www.datalegion.ai/auth.md: you approve it by reading back a short code, and it gets its own API key on the team you choose. Every agent you approve is listed on your Connected Apps page, where you can disconnect it.
The CLI is fully async, outputs JSON to stdout (logs to stderr), and is built to be called as a shell tool by AI coding agents. Claude Code, Cursor, OpenClaw, Cline, and Aider can run it directly. Install with brew or pip.
We expose discovery via /.well-known/mcp/server-card.json (SEP-1649) and /.well-known/mcp.json. Agents that support these patterns can detect our server, its tools, and its auth method automatically.
Anything that speaks Model Context Protocol. We ship configs for Claude Code, Claude Desktop, ChatGPT, Codex, Grok, Gemini, Cursor, OpenClaw, Cline, Continue, Windsurf, and Goose. New MCP-compatible clients work out of the box.
Connect your agent in 60 seconds
Same API key works across REST, MCP, and CLI. Self-serve credits or enterprise agreements available.