Codex MCP: connect any API
through one URL.
Add Apitell to OpenAI’s Codex as one custom MCP server and it can read and call Stripe, Jira, Slack or your own API. No bearer token in your environment: Codex signs in with OAuth and the keys stay in the Apitell vault.
$ codex mcp add apitell --url https://mcp.apitell.com/mcp $ codex mcp login apitell browser → sign in to apitell (OAuth) # ~/.codex/config.toml [mcp_servers.apitell] url = "https://mcp.apitell.com/mcp"
Three steps in Codex.
New to Apitell? Sign up and connect your APIs in the console first: paste a key once, or sign in with the provider.
Run the command, or add a [mcp_servers.apitell] table with the url to ~/.codex/config.toml. A project .codex/config.toml works too, in trusted projects.
codex mcp add apitell --url https://mcp.apitell.com/mcpAdding the server does not sign you in. Run codex mcp login apitell and finish the OAuth sign-in in your browser. Choose which connectors Codex may reach and whether it may take write actions.
codex mcp login apitellCodex sees four tools: ai_search finds the operation, ai_describe reads it, ai_call runs it. codex mcp list shows the server.
Live API data for every task.
Codex reads the real API instead of guessing from docs, so the code it writes matches what the API returns.
“Which Jira issues are in review, and who is assigned to each?”
One question, the live board, no browser tab.
Jira MCP →“Fetch a real Stripe invoice in test mode and update our parser to match.”
Codex reads the actual shape of the object before it changes the code.
Stripe MCP →“Open a Jira ticket for each failing test.”
Creating tickets is a change. It runs only if you allowed write actions for Codex, and can wait for your approval.
Write approvals →“Call our orders API for customer 42 and compare it with this handler.”
Your internal API works too, with one short description file.
Connect your own API →No token in config.toml or your shell.
Nothing in the environment to leak
bearer_token_env_var and http_headers put a token in your shell or your config. With Apitell the entry is a URL and Codex holds an OAuth sign-in.
Bound to one host
The key comes out of the vault for one call, to the API it was stored for. A tool description cannot redirect it.
How the vault works →Guardrails for autonomous runs
Allow or deny operations, cap arguments, rate-limit the agent so a loop cannot burn your quota. Every call is logged.
Policies →Codex MCP questions.
How do I add a custom MCP server to Codex?
Run codex mcp add apitell --url https://mcp.apitell.com/mcp, or add [mcp_servers.apitell] with url = "https://mcp.apitell.com/mcp" to ~/.codex/config.toml. Then sign in with codex mcp login apitell.
How does Codex sign in to a remote MCP server with OAuth?
codex mcp login <name> starts the OAuth flow in your browser. Codex supports OAuth for streamable HTTP servers, and adding a server does not sign you in, so run login once after adding.
Where is the Codex config.toml?
~/.codex/config.toml by default, shared by the Codex CLI and the IDE extension. MCP servers can also live in a project’s .codex/config.toml, in trusted projects.
Do I need bearer_token_env_var for Apitell?
No. Codex can send a bearer token from an environment variable, but then the token lives in your shell. Apitell uses OAuth, and the API keys stay in the vault.
Can I limit what Codex does through Apitell?
Yes. Codex has enabled_tools and disabled_tools, but Apitell exposes only four tools; the real limits live in Apitell policies: allowed operations, argument caps and rate limits per agent.
Can I use the same URL in other clients?
Yes, one URL for every client: Claude Code, Cursor, VS Code, ChatGPT and Claude.
Every API in Codex. No tokens in your shell.
Free to start. One URL for every agent.