Agents
Introduction
Agents work from your real tables and columns for more accurate results, and they never receive the database password.
The MCP URL is:
https://swarmvia.com/mcpThere is no token to paste. You can copy the same URL from Settings → Connected agents, which also walks through each client.
You need a swarmvia account. You do not need a source first. On the authorization screen, choose All sources so the assistant can use sources you create later. To let it create sources itself, tick Admin actions. That ticks every admin option, including This agent may create sources and This agent may move origin keys onto sources, which lets the assistant POST a key the project already has, or give you a paste page. It will never ask you to type the secret in chat.
Pick your agent
Cursor
Create .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every
project:
{
"mcpServers": {
"swarmvia": {
"type": "http",
"url": "https://swarmvia.com/mcp"
}
}
}Save the file. Cursor opens a browser for authorization. Do not add a token or
an Authorization header.
You can also paste the URL under Cursor Settings → Tools & MCP.
Claude Code
claude mcp add --transport http swarmvia https://swarmvia.com/mcpThe first tool call opens the authorization screen.
Visual Studio Code
Create .vscode/mcp.json in the workspace. VS Code uses servers, not
mcpServers:
{
"servers": {
"swarmvia": {
"type": "http",
"url": "https://swarmvia.com/mcp"
}
}
}Save, then start the server from the CodeLens and finish authorization in the browser.
Codex
codex mcp add swarmvia --url https://swarmvia.com/mcpThe first tool call opens the authorization screen.
Claude
Claude (claude.ai, Claude Desktop, and Cowork) adds swarmvia as a custom connector:
- Open Customize → Connectors. Choose + Add, then Add custom connector.
- Name it
swarmvia, pastehttps://swarmvia.com/mcp, and choose Continue. Keep the recommended sign-in and OAuth client options, then choose Add. - In a chat, choose +, then Connectors, and turn swarmvia on.
On a Team or Enterprise plan, an owner adds the connector once under Organization settings → Connectors (Add → Custom → Web). Each member then finds it under Customize → Connectors and chooses Connect. The Free plan allows one custom connector.
ChatGPT
ChatGPT adds swarmvia as a custom MCP server on chatgpt.com (not the mobile app):
- Open Plugins, choose +, then Add custom MCP server.
- Name it
swarmvia, pastehttps://swarmvia.com/mcpunder Connection, and choose OAuth. Check I understand and want to continue, then choose Create as a plugin. - In a chat, type
@and pick swarmvia.
On a Business workspace, only owners, admins, and members with the Create plugins with MCPs permission can add one. On Pro, ChatGPT offers only a custom server's read and fetch tools.
Other clients
Add a remote MCP server (some apps call it a custom connector) and paste
https://swarmvia.com/mcp. Any client that speaks streamable HTTP MCP and
OAuth 2.1 will work.
You can also paste the setup prompt into any of these agents. A coding tool adds the server itself; a chat app walks you through the steps above.
Approve the grant
Your browser opens swarmvia. It asks three things.
Sources. Pick one:
- All sources. Every current and future source in this organization. On API
sources, check Allow writes if the assistant may send methods other than
GET,HEAD, andOPTIONS. You can approve this with no sources yet. - Only the sources I pick. Tick each source the assistant may use. Each
API source you tick is one of:
- Read-only (the default).
GET,HEAD, andOPTIONS. - Chosen calls. A list that starts from what you can call on the source. Remove what the assistant does not need. It can make only those calls.
- Everything I can do. Every call you can make on the source, now and as your access changes.
- Read-only (the default).
Work.
- Track issues, memories and handoffs. On by default. Lets the assistant read and update issues, project memories, and session handoffs on the Work board for projects you can see, and ask you questions. A connector can use the work board even without access to any sources.
Admin actions. Owners and admins only, and off until you tick it. Ticking it shows its options with every one ticked; untick any the assistant does not need. Each stops working if you are no longer an owner or admin.
- This agent may create sources. Creates a durable API source that uses a plan slot, then onboards the origin key. The assistant passes the origin URL it already calls. Ticking it on its own also ticks the next option.
- This agent may move origin keys onto sources. The assistant may POST a key the project already has, or give you a paste page. It will never ask you to type the secret in chat.
- This agent may read access logs. The assistant can search the same entries as each granted source's Logs tab, including caller IPs and database statements.
- This agent may change source policies. The assistant can set the default source policy, and the extra calls groups get, on the API sources it is given. It cannot change its own limits.
- This agent may oversee agent sessions. The assistant can list every agent session in the organization, as the Sessions page shows you, and revoke any connected agent's session with every key it holds (never a Control API token's session or keys). Without it, an assistant sees only its own sessions and yours, and stops only its own.
- This agent may manage webhooks. The assistant can list, create and rotate webhook destinations, and attach them to the sources it is given so slow requests finish by callback.
Unticking Admin actions turns all of them off.
The assistant never gets more than you have. What you can call on a source is set by its policy.
A session grant can also create webhook destinations and attach them to a granted source (and turn async on if that source is still sync). That uses the same owner or admin permission as the dashboard. There is no extra checkbox.
Database sources have no separate write gate. On an API source, writes stay blocked unless you allow them. Prefer Chosen calls over Everything I can do when the work must change data at the origin.
MCP sources have no write checkbox on this screen. On the source page, tools are grouped into read and write, and the checkboxes are the limit. Connectors you already installed follow that list, including sources they reach through a group. You do not reinstall the connector to change it.
Click Allow access. Change any of these later under Settings → Connected agents → Edit permissions, or disconnect there. Both take effect without reconnecting. Session keys the connector already holds are revoked when you disconnect it, or when you start or stop limiting it on a source, so the assistant starts a new session. Some assistants keep the tool list from the start of a chat, so newly allowed tools may only appear in a new one.
One connector authorizes one organization. To connect a second organization, add the URL as a second connector. Re-adding a connector always shows the consent screen, so you can widen or narrow the grant without disconnecting first.
After you connect
The assistant can list the sources you granted, start sessions on them, and (on a database source) run the query tools those keys allow. If you
ticked This agent may create sources, it can also admit an origin with create_source. If you ticked
This agent may move origin keys onto sources, it can prepare managed auth with adopt_connection and POST the
project's existing key to a one-shot intake — never as an MCP argument.
Session keys default to one hour and to read-only methods, and last at most
7 days. When a key expires, the assistant gets a new one; it does not need you
to approve anything again.
Each task the assistant does is an agent session: it starts one with a purpose, and every key it gets for the task belongs to it. Open Sessions to see what each one did on every source, and revoke it to stop all of its keys at once.
Try: list the sources I granted, reuse one if it fits, start a session for the task, and call the source's endpoint instead of the origin.
On a managed source, the origin credential is attached at our edge. The assistant gets a URL and a timer, never the secret. Prefer managed custody for anything an assistant touches.
See MCP server for the tools and how session keys work.
If a script or a committed skill should call a source without MCP, give it a Control API token so it mints its own short-lived access keys. See Refresh access tokens before they expire and Reuse one source across agent runs.
MCP servers through swarmvia
An MCP source puts a remote MCP server behind the swarmvia
MCP server your agent already has, so there is one connection to add and one
grant to review. The agent looks for that source with list_sources before
adding the server as its own client. The agent finds
the server's tools with source_list_tools, then runs a read-only tool with
source_call_read_tool and any other with source_call_tool, so you can let
your client approve the read-only one without asking each time.
If create_source is allowed, the agent can add a server itself by passing
its URL as mcp_url.
Every source list_sources returns reports whether it can reach its upstream for
you. When a source needs someone to connect an account, reconnect, or add a
token, the agent gets a link to give you and calls connect_source to check
once you have. The link opens swarmvia and needs you signed in; it never asks
the agent for a token or password.
Next steps
- MCP server
- Database sources
- Give a data team Claude access to Postgres
- Reuse one source across agent runs
- Control API (CI and scripts, not assistants)