One README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the One listing page.

One MCP. Three tools. Every agent. Every app.

One MCP Server

Setup guides  ·  Docs  ·  API directory  ·  Website  ·  Dashboard  ·  Changelog

npm version   platforms   verified tools   License MIT

One's MCP server gives your agent the apps you have connected on One. It has three tools, however many platforms and actions sit behind them, and the agent never sees an OAuth token or an API key.

There are two ways to run it.

  • The remote server, which we recommend. One hosts it at https://mcp.withone.ai/mcp. Point your client at that URL, sign in to One in the browser and choose what the agent can reach. There is nothing to install and no API key.
  • This package. @withone/mcp runs the same three tools on your machine over stdio, with an API key. Use it for clients without remote support, headless machines and Docker.

Quick start

Add the remote server to your client. On first connect the client opens a browser, where you sign in to One and pick what the agent can reach.

Claude Code

Terminal
claude mcp add --transport http one https://mcp.withone.ai/mcp

Then run /mcp inside Claude Code, pick one and choose Authenticate.

Codex

Add One to ~/.codex/config.toml, then sign in with codex mcp login one.

toml
[mcp_servers.one]
url = "https://mcp.withone.ai/mcp"

Cursor and VS Code

Add to Cursor Install in VS Code Install in VS Code Insiders

In Windsurf, One is in the MCP marketplace, which reads the MCP Registry entry ai.withone/mcp.

Any other client

The server speaks the Streamable HTTP transport. A client with a config file takes the entry below, and a client with a settings screen needs only the URL.

config.json
{
  "mcpServers": {
    "one": {
      "type": "http",
      "url": "https://mcp.withone.ai/mcp"
    }
  }
}

Some clients name the keys differently. There is a step-by-step guide for Claude Code, Codex, Claude Cowork, ChatGPT, Cursor, Devin, Kiro, OpenClaw and Hermes, and the setup guides cover Gemini CLI and the rest.

Then ask your agent

Get my last 5 emails from Gmail

Post the release notes to #general in Slack

Build a form that creates a HubSpot contact

Remote or local

Use the remote server wherever your client supports one.

Remote serverLocal @withone/mcp
SetupA URLNode.js 22.23.4+, 24.22.1+ or 26.12.1+, run with npx
Sign-inOAuth in the browserAn API key in ONE_SECRET
ScopingThe consent screen, editable from the dashboardEnvironment variables, or limits set on the key
Approval before writesYour client's own confirmation, prompted by the tool annotationsONE_APPROVAL, through MCP elicitation
TransportStreamable HTTPstdio
Good forEvery client that supports remote serversClients without remote support, headless machines with no browser, Docker and per-user identity scoping

The MCP Registry lists both under ai.withone/mcp, the remote URL and the npm package.

The three tools

ToolWhat it doesAnnotations
list_one_integrationsLists your connected apps, each with its connection key and the access it allowsRead-only
find_one_actionsFinds the action for every operation a task needs, across platforms, in one call, with its documentationRead-only
execute_one_actionRuns an action on a connected appDestructive, open-world

The agent calls list_one_integrations first, then find_one_actions with every operation the task needs, then execute_one_action for each one. The remote server sends these instructions when the client connects. The local server does not, and you can add the workflow to your agent's prompt if it does not follow it.

execute_one_action is the only tool that can change anything. Its annotations mark it destructive, which lets your client ask before it runs.

Find actions

Send one entry in requests for each operation, as a kebab-case platform and a short intent that names the operation alone, without IDs, names or message text.

config.json
{
  "requests": [
    { "platform": "gmail", "intent": "send an email" },
    { "platform": "hubspot", "intent": "find a contact by email" }
  ],
  "task": "email a report to a CRM contact",
  "ai_model": "claude-sonnet-5"
}

requests takes 1 to 10 operations. task is the whole job in one general line, which helps choose between similar actions, and ai_model names the model that is asking.

Each answer names the chosen action with its documentation, plus a few alternatives. When One is unsure, it sets a substitute apart. Large documents come back as a digest that lists the sections it left out. Call again with load: [{ action_id, section }] in place of requests to read a section, the table of contents, the whole document or an alternative. Results only include actions the agent is allowed to run.

A platform name One does not have, such as clickup for click-up, is not searched. The answer names the platforms it may have meant, and the agent can ask again.

Execute an action

The two servers take the same arguments under different names. The remote server uses snake_case and the local package uses camelCase.

Remote serverLocal packageWhat it is
action_idactionIdThe action to run, from find_one_actions or from a connection's access list. Required
connection_keyconnectionKeyThe connection to run it on, from list_one_integrations. Required
platformThe connection's platform. Required on the local package only
datadataThe request body, JSON by default
path_variablespathVariablesValues for the {var} placeholders in the action's path
query_paramsqueryParamsQuery-string parameters
headersheadersExtra headers to send to the platform
is_form_url_encodedisFormUrlEncodedSend data as application/x-www-form-urlencoded
isFormDataSend data as multipart. The remote server does not support it yet
ai_modelThe model the agent runs as, recorded with the call

One resolves the connection and its credentials on its side, makes the call and returns responseData, status and requestConfig, a copy of the request with credentials redacted. A platform error comes back as a normal result that carries its status. Only a refusal from One is a tool error.

Upgrading from 1.x? search_one_platform_actions and get_one_action_knowledge are removed, and find_one_actions replaces both.

Choose what the agent can reach

On the remote server, the consent screen decides what the agent gets. Pick the account and environment, then give access to all connections or tick specific ones and set a level for each.

LevelWhat the agent can run
Full accessEvery action on the connection, including deletes
Read & writeActions that read or change data, but no deletes
Read onlyActions that only read data
CustomOnly the actions you tick

A level is judged by what each action does, not by its HTTP method. One classifies every action as read, write or delete, which means a search sent as a POST runs under Read only.

One enforces the grant on every call. An action outside it is never offered to the agent, and a call that names one anyway is refused. Each connection in list_one_integrations carries an access field, which tells the agent what it can run before it looks for actions.

Knowledge only mode lets the agent read API documentation and nothing else. It is built for code generation. The agent gets find_one_actions alone, and each document comes back whole with how to call the action from your own code. Turn it on from the consent screen.

To change or revoke access, open Agents and access in the One dashboard. Change a connection's level or remove it, and the change applies on the agent's next call, with no reconnect. An edit can narrow or restore what you first granted. To grant more, reconnect and approve again.

Manage access in the One dashboard, with the level menu open for Gmail. Full access, Read and write, Read only, Custom actions and No access.

The docs cover the consent screen, the errors and refusals and the OAuth details for anyone building a client.

Run the package locally

The package needs Node.js 22.23.4+, 24.22.1+ or 26.12.1+ and an API key from the One dashboard. Add it to your client's MCP config.

config.json
{
  "mcpServers": {
    "one": {
      "command": "npx",
      "args": ["-y", "@withone/mcp"],
      "env": {
        "ONE_SECRET": "your-one-api-key"
      }
    }
  }
}

Or run it by hand.

bash
ONE_SECRET=your-one-api-key npx -y @withone/mcp

Older Node releases trust the compromised eMudhra CA certificates (October 2026), and a network attacker could read ONE_SECRET. On one of them the server still starts, but every tool returns an error with the command that updates Node.

Configuration

Scope the local server with environment variables in place of a consent screen.

VariableDefaultDescription
ONE_SECRETYour API key. Required
ONE_PERMISSIONSadminread allows read actions only, write allows read and write actions, and admin allows everything, including deletes. Judged by what each action does, not its HTTP method. Below admin, an action with no classification is refused
ONE_APPROVALoffAsk you before an action runs. write asks before writes and deletes, and delete asks before deletes only. See Approval
ONE_CONNECTION_KEYS*Comma-separated connection keys the agent may use. find_one_actions only searches their platforms
ONE_ACTION_IDS*Comma-separated action IDs the agent may find and run
ONE_KNOWLEDGE_AGENTfalsetrue removes execute_one_action. find_one_actions then returns each document whole, with how to call the action from code
ONE_IDENTITY, ONE_IDENTITY_TYPEOnly list and run connections that belong to one identity. The type is user, team, organization or project
ONE_BASE_URLhttps://api.withone.aiThe One API the server calls
ONE_ALLOW_UNPATCHED_NODE1 lets the server call One from an older Node.js. You stay exposed while it is set

An invalid ONE_PERMISSIONS or ONE_APPROVAL stops the server at startup. With no variables set beyond the key, the server has full access and all three tools.

Whatever you set is reported back to the agent. list_one_integrations stamps each connection with an access field.

accessWhen
{ "policy": "full" }No action allowlist and ONE_PERMISSIONS=admin. Every action is runnable
{ "policy": "levels", "levels": ["read"] }ONE_PERMISSIONS is read or write. Only actions at these levels are runnable
{ "policy": "actions", "actions": [...] }ONE_ACTION_IDS is set. Exactly these actions are runnable, and no search is needed

Approval

An agent that has just read an email, a web page or another third-party document can be steered by what it read. With ONE_APPROVAL set, the person at the MCP client decides whether a change goes ahead, not the agent.

Before execute_one_action runs an action that needs approval, the server shows a prompt through MCP elicitation. It names the action, the platform, the connection and what will be sent, and you tick a box to run it. Declining, dismissing or not answering within 10 minutes stops the action, and nothing is sent.

Your MCP client has to support elicitation. If it does not, every action that needs approval is refused. Check your client before you turn this on.

Docker

Terminal
docker build -t one-mcp .
docker run -i --rm -e ONE_SECRET=your-one-api-key one-mcp

-i keeps stdin open, which a stdio server needs. Pass any variable above with another -e.

Limits on the key

The variables are enforced by the local server. To enforce limits on One's side for anything that uses the key, set them on the key itself in the dashboard. If the One CLI is installed, one config keeps the variables of an existing one server entry in step with the CLI's own settings.

Build it into your product

Does your product run its own AI agent for its users? It can skip the browser sign-in. Connect is One's embeddable authentication, which you add to your product for your users to connect their own apps. Your server then gets a 15-minute token for a connected user, and your agent uses the remote server with that token, within what the user granted.

server.ts
const { accessToken, url } = await oneConnect.getMcpToken(userId);
// url is https://mcp.withone.ai/mcp

See Give your agent the MCP server.

Security

Your agent never handles a platform credential. One stores the OAuth tokens and API keys for your connections and adds them on its side on each call. The remote server authenticates your agent with a short-lived OAuth token tied to the grant you approved, and the local package's only credential is ONE_SECRET. Credentials are redacted from every response, and sensitive headers are stripped from the request echo.

Every call is recorded against the agent or the key that made it. Open either one in Agents and access to see each action it ran, whether that action reads or writes, and how many calls One blocked.

The Actions tab for Claude Code in the One dashboard. Each action with its app, method, access, calls, errors and blocked calls.

To report a vulnerability, see SECURITY.md.

Development

bash
git clone https://github.com/withoneai/mcp.git
cd mcp
npm install        # also builds
npm test
ONE_SECRET=your-one-api-key npm run inspector

npm run inspector opens the MCP Inspector against your local build.

Support and license

Email support@withone.ai or open an issue. The package is released under the MIT license.