Skip to main content

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:
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:

Platform-specific setup

Add to ~/.claude/mcp.json:

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

Errors in MCP

MCP tool calls return errors as structured responses:
The agent handles these the same way as HTTP errors. Check credits, retry on rate limits, alert user on auth failures.