Skip to main content
Give Codex live web search, extraction, crawling, and research. In Codex in the ChatGPT desktop app, install the official Tavily plugin, which bundles Tavily’s MCP tools and skills. In the Codex CLI and IDE extension, connect Tavily’s hosted MCP server. All three share one MCP config, so you only set it up once.
1

Install the plugin

Or open Plugins in the ChatGPT desktop app, search for Tavily, and select +. The same plugin also works in ChatGPT chats.
2

Connect

When prompted, connect Tavily and sign in to your Tavily account.
3

Try it

Start a new Codex chat and ask, or type @ to pick Tavily:
Use Tavily to find the latest docs for a dependency in this repo, check our usage against the installed version, and cite the source.

What you get

The plugin also adds Tavily skills, such as tavily-research and tavily-best-practices, that guide Codex through multi-step work.

More options

Export your Tavily API key as TAVILY_API_KEY in the environment Codex runs in, then add the server with:
Or in config.toml:
For limited Search and Extract without an account:
See keyless access.
Requires Node.js 20+ and a Tavily API key:
Install the Tavily CLI, sign in, and add the Agent Skills to your project:
Start a new session to load them. Add --global to install them for all projects.

Troubleshooting

  • The plugin doesn’t show up in the IDE extension. The IDE extension doesn’t support plugins. Use the MCP server, which the extension reads from config.toml.
  • Tavily tools don’t appear after installing the plugin. Start a new chat. Plugins load at the start of a chat or session.
  • tavily isn’t authenticated. Run codex mcp login tavily. With bearer_token_env_var, check that TAVILY_API_KEY is set where Codex runs.
  • The project .codex/config.toml is ignored. Codex reads project config only in trusted projects.
  • OAuth uses the wrong key. Tavily uses the key named mcp_auth_default, so rename a key in the Tavily dashboard. See API key selection.

Resources