The Cashmere MCP server gives Codex tools to search, read and cite the content your organization has licensed. You sign in with your Cashmere account, so you do not store a key.
The Codex CLI, the Codex IDE extension and the Codex desktop app share one
MCP configuration in ~/.codex/config.toml. Add the server once and it works
in all three.
Prerequisites
- A Cashmere account. Sign up at https://cashmere.io/accounts/signup.
- Licensed content. Codex can only read collections your organization is licensed for. Onboarding offers collections that are free to license.
Add the server
Run these two commands in your terminal:
codex mcp add cashmere --url https://mcp.cashmere.io
codex mcp login cashmere
The second command opens your browser. Sign in to Cashmere and approve access. Codex stores the sign-in, so you do not repeat it.
On a machine without a browser, run codex mcp login cashmere --no-browser.
Codex prints a URL. Open it on another device, sign in, and paste the
redirect URL back into the terminal.
To edit the file by hand instead, add this table to ~/.codex/config.toml
and then run codex mcp login cashmere:
[mcp_servers.cashmere]
url = "https://mcp.cashmere.io"
Use an API key instead of OAuth
Use this for an unattended run. Set CASHMERE_API_KEY in your environment,
then add the server with:
codex mcp add cashmere --url https://mcp.cashmere.io --bearer-token-env-var CASHMERE_API_KEY
Codex reads the key from the environment, so config.toml does not hold it.
Create a key at https://cashmere.io/settings/api-keys.
Check that it works
codex mcp list
Expect cashmere in the list. Start a new Codex session, then ask: "Search
Cashmere for books about negotiation." Codex calls a Cashmere tool and cites
the publications it found.
A Codex session that started before you added the server does not see it. Start a new session.
See Cashmere MCP Tools for every tool the server provides.
Install the agent skill too
The MCP server gives Codex tools to read content. To have Codex build apps on the Cashmere API, also install the agent skill. Paste this into Codex:
Set up the Cashmere agent skill for me: fetch and follow https://cashmere.io/docs/agent-setup.txt