Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.3ngram.ai/llms.txt

Use this file to discover all available pages before exploring further.

3ngram speaks the Model Context Protocol (MCP) over Streamable HTTP. The Codex CLI knows how to register and authenticate remote MCP servers out of the box.

Install

codex mcp add 3ngram --url https://mcp.3ngram.ai/mcp
Codex opens the OAuth login automatically the first time a session calls 3ngram. Dynamic Client Registration handles the credential exchange — no client id or secret to manage.

Config file form

If you manage ~/.codex/config.toml by hand, add a TOML block:
[mcp_servers.3ngram]
url = "https://mcp.3ngram.ai/mcp"
transport = "http"

Verify

Start a Codex session and ask it about 3ngram, or run codex mcp list to see the registered servers. Calls return tool descriptions on the first hit and prompt for OAuth if no cached token is present. The client troubleshooting guide covers the usual issues (stale OAuth tokens, transport mismatches, multi-account workspaces).