Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encrata.com/llms.txt

Use this file to discover all available pages before exploring further.

MCP Flow

Agents that speak MCP (Model Context Protocol) can skip HTTP entirely. Add the Encrata server to your MCP config and every lookup becomes a native tool call. The agent doesn’t need to construct HTTP requests, parse JSON responses, or manage authentication headers. MCP handles it all.

When to use it

  • Your agent platform supports MCP (Claude Code, Cursor, Windsurf, custom MCP clients)
  • You want native tool integration - lookups appear as callable functions
  • You prefer structured I/O over raw HTTP request/response management

How it works

  1. Agent calls a named tool (e.g., lookup_email)
  2. MCP client sends the request to Encrata’s MCP server with the configured auth header
  3. Encrata processes the lookup and returns structured data
  4. Agent receives the result as a native tool response

Configuration

Add Encrata to your MCP config file:
{
  "mcpServers": {
    "encrata": {
      "url": "https://encrata.com/mcp",
      "headers": {
        "Authorization": "Bearer enc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
You still need an API key for MCP authentication. Create one via the API Key Flow or from the dashboard.

Available tools

Once connected, the following tools are available to your agent:
ToolDescriptionParameters
lookup_emailEmail enrichmentemail (string)
lookup_phonePhone number lookupphone (string)
lookup_ipIP intelligenceip (string)
lookup_domainDomain searchdomain (string)
lookup_companyCompany searchcompany (string)
google_searchGoogle searchquery (string)
darkweb_searchDark web searchquery (string)
username_searchUsername searchusername (string)
check_creditsCheck remaining creditsnone

Platform-specific setup

Add to ~/.claude/mcp.json:
{
  "mcpServers": {
    "encrata": {
      "url": "https://encrata.com/mcp",
      "headers": {
        "Authorization": "Bearer enc_live_xxx..."
      }
    }
  }
}

What you get

  • Native tool calls - no HTTP boilerplate, no JSON parsing
  • Automatic discovery - agent sees available tools without reading docs
  • Structured responses - data comes back in the format your agent expects
  • Same credit system - each tool call costs the same as the equivalent HTTP endpoint

MCP vs HTTP

AspectMCPHTTP
SetupConfig file + API keyAPI key only
Request formatTool call with named paramsHTTP POST with JSON body
Response formatStructured tool resultJSON response body
AuthConfigured once in MCP configBearer header on every request
Platform supportMCP-capable agents onlyAny HTTP client
DiscoveryAutomatic (tool listing)Manual (read auth.md)

Errors in MCP

MCP tool calls return errors as structured responses:
{
  "error": "insufficient_credits",
  "message": "Not enough credits. Current balance: 0",
  "credits_remaining": 0
}
The agent handles these the same way as HTTP errors. Check credits, retry on rate limits, alert user on auth failures.