Using Anakin through the MCP Gateway
The TrueFoundry MCP Gateway centralizes access to Anakin - agents connect through one endpoint instead of maintaining separate server configurations per client. When you use Anakin MCP server through the AI Gateway, TrueFoundry provides:- Authentication - Clients authenticate inbound to the AI Gateway with a Personal Access Token, Virtual Account, or IDE OAuth flow. For outbound access, the AI Gateway runs Anakin’s OAuth 2.1 Authorization Code flow with Dynamic Client Registration and PKCE so each user authorizes their own Anakin account.
- Tool-level access control - You can selectively enable or disable individual Anakin tools from the TrueFoundry UI.
- Access control - Collaborators and role-based policies define who can use the server and which tools they can invoke. Enable or disable individual Anakin tools from the server detail page.
- Observability - Tool calls are traced with caller identity, tool name, inputs, and latency. Monitor server- and tool-level usage in MCP Metrics and export traces to your observability stack via OpenTelemetry.
- Guardrails - Apply pre-tool and post-tool guardrails on MCP tool calls.
Prerequisites
- A TrueFoundry account with permission to add MCP servers.
- An Anakin account with available credits. You can sign up for free at the Anakin Dashboard (300 credits, no card required). Tool calls consume credits from the organization chosen for the connection.
Adding Anakin MCP server to TrueFoundry
1
Open the MCP Server catalog
Navigate to MCP Servers in the TrueFoundry sidebar and click Add new MCP Server. On the next screen, select Connect Official Remote MCP Servers - this lists official, vetted remote MCP servers that you connect with your own auth.
2
Add Anakin
Search for anakin (or filter by Research), find the anakin card, and click + Add. TrueFoundry opens the Anakin MCP server detail page with the server URL pre-filled.

3
Configure the server
TrueFoundry pre-fills the server details for Anakin:
Add Collaborators - the users and teams that can use or manage this server - and assign each an MCP Server Manager or MCP Server User role.
4
Authenticate
Anakin uses OAuth 2.1 with Dynamic Client Registration and PKCE (
S256), so you do not need to paste an API key or create an OAuth app. Leave Client ID and Client Secret blank - DCR issues them at connection time. The requested scopes are openid, offline_access, and anakin:tools.- Save the MCP server, then open the Tools tab and click Connect Now.
- Sign in to Anakin with Google or email and password.
- Approve the consent screen. Anakin issues a dedicated, revocable key scoped to your account.
5
Verify tools
After connecting, the Tools tab lists Anakin’s available tools - scrape, search, map, crawl, deep research, Wire actions, monitors, AI visibility, sessions, and browser tasks. Write tools that change state are annotated so your MCP client can ask for confirmation before each call. Click Try on any tool to test it and inspect the JSON output before using it in an agent.
Connecting to an MCP Client
Open the How To Use tab on the Anakin server detail page for your tenant-specific Gateway URL and ready-to-paste client snippets - don’t build the endpoint manually. The tab includes snippets for Claude Code, VS Code, Claude Web, Claude Desktop, Cursor, Windsurf, Codex, and the Python and TypeScript MCP SDKs. Use Show API Key if your client requires a Gateway token in a header.Using the Tool Playground
Before deploying an agent, you can test any Anakin MCP server tool directly in TrueFoundry:1
Open a tool
On the Anakin MCP server detail page, click Try next to any tool - for example
scrape.2
Fill in the inputs
Provide the tool’s inputs, such as the
url of the page to scrape (for example https://example.com) and any format or extraction options the tool exposes.3
Execute and inspect
Click Execute Tool and inspect the JSON output in the right panel.
Tool Metrics
The Tool Metrics tab on the Anakin server detail page tracks how agents use each tool:- Invocation count - which tools are called most often
- Latency - how long each tool takes to respond
- Error rates - which tools are failing in production
Disabling Individual Tools
On the Tools tab, toggle off any Anakin tools your agents don’t need:- Disabled tools are hidden from MCP clients and cannot be invoked.
- Enabled tools remain available to agents as usual.