Codex MCP: Connect Kenso to OpenAI Codex
Codex connects to Kenso's remote MCP server over Streamable HTTP. Run codex mcp add kenso --url with Kenso's server URL, then codex mcp login kenso to sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this setup.
How Do You Connect Kenso to Codex?
In short: Add https://mcp.ken.so/mcp as a remote MCP server in Codex, then sign in to Kenso in your browser.
Add Kenso as a Streamable HTTP Server
Run this in your terminal. It writes Kenso to ~/.codex/config.toml, which the Codex CLI, the IDE extension and the ChatGPT desktop app all read. An entry you already added as ken keeps working: the name is only a label on your machine.
codex mcp add kenso --url https://mcp.ken.so/mcpSign In to Kenso
Run codex mcp login kenso. Your browser opens the Kenso sign-in. Sign in with the account you use in the Kenso app, then select Allow access on the Kenso approval screen. You never paste a client ID or secret.
codex mcp login kensoCheck the Connection
Run codex mcp list, or type /mcp inside Codex, to see Kenso among your active MCP servers.
codex mcp listCan You Use a Kenso API Key Instead of OAuth?
In short: Yes. Codex can send your Kenso API key as a Bearer token when a browser sign-in is not an option.
Use a Kenso API Key as a Bearer Token
Create a key in the Kenso app under Settings > Integrations > API Keys and export it as KENSO_API_KEY in the shell that starts Codex. Codex sends it as a Bearer token in the Authorization header, and the key stays out of config.toml.
[mcp_servers.kenso]
url = "https://mcp.ken.so/mcp"
bearer_token_env_var = "KENSO_API_KEY"What Can You Ask Kenso From Codex?
In short: Ask in plain language. The client picks the Kenso tool, and Kenso runs it with your workspace role.
| Ask | Kenso tool used | What the tool does |
|---|---|---|
| Find VPs of Sales at US software companies with 50 to 200 employees. | search_read | Searches Kenso's people and company database and returns filter facets. |
| Load Kenso's create-campaign skill and plan a 3-step cold email campaign for that list. | load_skill | Loads one Kenso workflow skill, such as create-campaign, into the chat. |
| Before I launch, preview who lands in the Series B segment. | segments_read | Previews which contacts land in a campaign segment. |
| How many emails a day can this campaign send with the inboxes it has? | campaign_flow_read | Estimates how many emails a campaign can send with its inboxes. |
| How did my campaigns do this week? Show sends, replies and bounces for each one. | analytics_read | Reads campaign performance, engagement, deliverability and reply classifications. |
| Pause the fintech campaign while I rewrite step 2. | campaigns_write | Creates, updates, launches, pauses and resumes campaigns. |
Admins and members get read and write tools. A view-only seat gets read tools plus 20 write tools, inbox replies among them. Only the read-only URL, https://mcp.ken.so/mcp/readonly, removes every tool that writes.
- Kenso MCP security: Prompt injection, the read-only URL and what each role can change
What If Kenso Does Not Connect in Codex?
In short: Most failures come from a skipped sign-in step or a client setting.
| Problem | Fix |
|---|---|
| Kenso's tools stop working after a while | Sign in again: run codex mcp logout kenso, then codex mcp login kenso. |
| codex mcp login cannot finish on a remote machine | The login listens for a browser callback on your machine. On a devbox, set mcp_oauth_callback_port or mcp_oauth_callback_url in config.toml, or use the API key setup instead. |
| A long Kenso call times out | Codex waits 60 seconds per tool call by default. Raise tool_timeout_sec under [mcp_servers.kenso] in config.toml. |
| A Kenso tool answers "Missing scope" | Part of the Kenso approval screen was declined. Remove Kenso from the client, add it again and select Allow access. |
Frequently Asked Questions
No. OpenAI's current Codex docs cover Streamable HTTP servers and OAuth login without any experimental flag.
No. The ChatGPT desktop app, Codex CLI and IDE extension share the same config.toml, so adding Kenso once covers all three.
Yes. Set default_tools_approval_mode to writes under [mcp_servers.kenso] and Codex prompts before any tool that is not marked read-only.
With one workspace, Kenso picks it for you. If you belong to several, say which workspace you mean in your request, or add ?workspace= and the workspace id to the server URL to keep the connection in one. An API key that reaches several workspaces needs that. Kenso rejects calls to workspaces you are not a member of.
Related
Kenso MCP server
What Kenso's MCP server does and every client it works with
Claude MCP: Connect Kenso as a Custom Connector
ChatGPT MCP: Connect Kenso as a Custom MCP Server
Claude Code MCP: Connect Kenso
Cursor MCP: Connect Kenso
Gemini CLI MCP: Connect Kenso
Connect Kenso to Perplexity with MCP
Connect Kenso to VS Code and GitHub Copilot with MCP
Connect Kenso to Claude Desktop with MCP
Kenso pricing
Plans and credit prices
Sources
Changelog
- : Page published.