> ## Documentation Index
> Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up Anakin MCP Server

> Connect Anakin, a web-data platform for AI agents, as an official remote MCP server on the TrueFoundry MCP Gateway for governed scraping, search, crawling, and browser automation.

[Anakin](https://anakin.io) is a web-data platform for AI agents. It offers scraping, search, crawling, deep research, structured extraction (Wire), website monitoring, AI-visibility checks, and AI browser automation. Register its official remote MCP server on the TrueFoundry MCP Gateway so your agents can use Anakin through governed access.

## Using Anakin through the MCP Gateway

The [TrueFoundry MCP Gateway](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-overview.md) 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](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-gateway-auth-security.md#inbound-authentication) to the AI Gateway with a Personal Access Token, Virtual Account, or IDE OAuth flow. For [outbound access](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-gateway-auth-security.md#outbound-authentication), 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](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-gateway-auth-security.md#access-control) 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](https://www.truefoundry.com/docs/ai-gateway/analytics-mcp-metrics.md) and export traces to your observability stack via OpenTelemetry.
* **Guardrails** - Apply [pre-tool and post-tool guardrails](https://www.truefoundry.com/docs/ai-gateway/guardrails-overview.md) 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](https://anakin.io/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.

![Add new MCP Server catalog filtered to Research with the anakin card highlighted](https://mintcdn.com/truefoundry/8wLRW_WqXTZ1HV55/images/docs/ai-gateway/anakin-catalog-add.png?fit=max\&auto=format\&n=8wLRW_WqXTZ1HV55\&q=85\&s=6993811839a87378b22a022dbb239b93)

**3. Configure the server**

TrueFoundry pre-fills the server details for Anakin:

| Field | Value |
| - | - |
| **Name** | `anakin` |
| **Description** | Anakin gives AI agents live web data - scrape, search, crawl, monitor, and automate browsers. |
| **URL** | `https://mcp.anakin.io/mcp` |

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`.

1. Save the MCP server, then open the **Tools** tab and click **Connect Now**.
2. Sign in to Anakin with Google or email and password.
3. Approve the consent screen. Anakin issues a dedicated, revocable key scoped to your account.

Each user connects once with their own Anakin identity.

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

See [MCP Metrics](https://www.truefoundry.com/docs/ai-gateway/analytics-mcp-metrics.md) for server- and tool-level dashboards across your Gateway.

## 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.

For example, disable write tools to keep an agent read-only on scraped and search content. See [MCP Tool Management](https://www.truefoundry.com/docs/ai-gateway/mcp/mcp-tool-management.md) for denylist and allowlist modes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.