Nasiko
Give agents deployed on Nasiko live web search, scraping, crawling, and Wire actions through Anakin's MCP server and the Nasiko MCP Gateway.
Nasiko is an open runtime for AI agents. You deploy agents to it, and its MCP Gateway gives each agent one URL for every tool it has been granted. Credentials stay in the gateway and never reach the agent.
Anakin plugs in as an MCP connector: register Anakin's remote MCP server once, each user connects their own Anakin account with OAuth, and every agent you grant it to can scrape, search, crawl, and run Wire actions.
| Type | Remote MCP connector |
| Server URL | https://mcp.anakin.io/mcp |
| Transport | Streamable HTTP (streamable_http) |
| Auth | OAuth 2.1 (auth_type: oauth2), per user |
| Tools | 21 (see the tool list) |
| Nasiko source | github.com/Nasiko-Labs/nasiko |
How it works
User ─► Nasiko ─► your agent ──tools/call──► Nasiko MCP Gateway ──user's OAuth token──► mcp.anakin.io/mcp
(checks grants, (scrape, search,
per-tool allow / ask / block) crawl, wire, ...)- No Anakin key in your agent. The agent authenticates to the gateway with its own
MCP_GATEWAY_TOKEN. The gateway adds the Anakin OAuth token on the way out. - Calls run on the caller's account. Nasiko runs a tool call on the connection of the user who started the flow, not the agent owner's. When you share an agent, each person's Anakin calls use their own Anakin account and credits.
- Tokens refresh automatically. Nasiko stores OAuth tokens encrypted and refreshes them before they expire.
- No redeploys. Adding, removing, or restricting a connector is a data change in Nasiko, so agents pick it up without being redeployed.
Setup
1. Register the Anakin connector
Self-hosted operators can register it at boot with the SEED_CONNECTORS environment variable on the Nasiko server:
[
{ "name": "anakin", "url": "https://mcp.anakin.io/mcp", "auth_type": "oauth2" }
]Per Nasiko's config reference, the Helm chart already seeds Anakin this way by default. A seeded connector is owned by the first superuser and shared with everyone. Nasiko recommends delivering SEED_CONNECTORS as a secret, because other entries in the same array can hold API keys. The Anakin entry holds none.
Otherwise, register https://mcp.anakin.io/mcp as a custom MCP server connector with auth type OAuth 2.0. Custom connectors are private to their owner until shared with a user, an agent, or everyone.
2. Connect your Anakin account
Each user clicks Connect on the Anakin connector once. Nasiko discovers Anakin's authorization server, starts an OAuth flow with PKCE, and sends you to Anakin to sign in and approve. You never paste an API key. Anakin mints a dedicated, revocable key for the connection.
No Anakin account yet? Sign up free.
3. Grant it to your agents
Enable the Anakin connector for each agent that needs web data. Nasiko lets you set each tool to allow, ask, or block:
| Stance | Use it for |
|---|---|
| allow | Read tools, such as scrape, search, map, crawl, agentic_search, wire_read_action, and monitor_changes |
| ask | Tools that change state: wire_write_action, wire_login, wire_build, monitor_create, monitor_control, session_delete, browser_task. The agent pauses until a person approves |
| block | Anything the agent should never do |
Anakin marks its write tools as state-changing, so they are the natural ones to put behind ask.
Calling Anakin from your agent
Nasiko injects two variables when it deploys your agent:
| Variable | What it is |
|---|---|
MCP_GATEWAY_URL | The gateway endpoint |
MCP_GATEWAY_TOKEN | This agent's gateway credential (rotated on every redeploy) |
Call the gateway with standard MCP JSON-RPC. Pass the inbound request's traceparent header along: the gateway uses it to work out which user's flow the call belongs to, and rejects tools/call without it.
import os
import uuid
import httpx
GATEWAY_URL = os.environ["MCP_GATEWAY_URL"]
GATEWAY_TOKEN = os.environ["MCP_GATEWAY_TOKEN"]
def mcp(method: str, params: dict | None, traceparent: str) -> dict:
request = {"jsonrpc": "2.0", "id": str(uuid.uuid4()), "method": method}
if params is not None:
request["params"] = params
response = httpx.post(
GATEWAY_URL,
json=request,
headers={"Authorization": f"Bearer {GATEWAY_TOKEN}", "traceparent": traceparent},
timeout=120,
)
body = response.json()
if "error" in body:
raise RuntimeError(body["error"])
return body["result"]
# Discover the tools this agent can reach, then call one by the name the gateway returns
tools = mcp("tools/list", None, traceparent)["tools"]
result = mcp("tools/call", {"name": scrape_tool_name, "arguments": {"url": "https://example.com"}}, traceparent)This is a trimmed version of the MCP client in Nasiko's own sample agent. Use the tool names that tools/list returns rather than hard-coding them.
Tool search. By default the gateway's tools/list returns only a handful of tools plus its meta-tools. Agents find the rest with nasiko_search_tools, so a query like "search the web" or "scrape a web page" surfaces Anakin's tools without your code naming them.
Gateway errors your agent should handle:
| Code | Meaning |
|---|---|
-32000 | Tool blocked for this agent |
-32001 | Tool is set to ask and needs approval |
-32002 | The user hasn't connected Anakin yet, or their connection needs reauthorizing |
Use cases
Follow-ups that check the public record first
Nasiko's Comms Follow-up Assistant drafts email and Slack follow-ups from your Gmail and Slack history. Connect Anakin and grant it, and the agent can also search and scrape the web before it writes: for example, "Reply to the email from legal about the NDA; check their public announcement first." It finds web tools by what they do, not by provider name, and caps web calls at 5 per task.
One web layer for every agent on the platform
Register Anakin once and every team's agent can use it. Each user's calls run on their own Anakin connection, so usage stays attributed to the person who triggered it, and an admin can turn web access off for one agent without touching the others.
Research agents with human approval on actions
Give a research agent search, scrape, and agentic_search on allow, and Wire write actions or browser_task on ask. It researches freely, and anything that changes state on a real website waits for a person.
Website monitoring agents
Grant monitor_create (on ask), monitor_list, and monitor_changes. The agent proposes monitors on competitor pricing pages, a person approves them, and later runs read monitor_changes to report what moved.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Anakin tools don't appear in tools/list | Tool search is on | Use nasiko_search_tools, or check the connector is granted to the agent |
Error -32002 on every Anakin call | The calling user hasn't connected Anakin | That user clicks Connect on the Anakin connector |
tools/call rejected with 403 | Missing or replaced traceparent | Forward the inbound flow's traceparent on every gateway call |
| Agent can't reach the gateway at all | It was deployed before the gateway URL was configured | Redeploy the agent |
| An Anakin tool reports insufficient credits | The organization that user chose when connecting is out of credits | Top up, or see Pricing |
Learn more
Stay updated
- Discord: discord.gg/T57dHrdT8u
- Email: support@anakin.io