search
Exa AI MCP Integration for OpenAI Agents SDK
Connect Exa AI to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Exa AI to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Exa AI MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-exa": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=exa",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=exa --write=deny Why Use KosmoKrator Here
Expose only Exa AI instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Exa AI Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Exa AI integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__exa__exa_search | exa.exa_search | Read | Perform a neural search query across the web using Exa AI. Returns a list of relevant pages with titles, URLs, and scores. Supports filtering by category, date range, and autoprompt mode. |
integration__exa__exa_find_similar | exa.exa_find_similar | Read | Find web pages similar to a given URL. Useful for discovering related content, competitors, or alternative resources. Returns a list of similar pages with titles, URLs, and scores. |
integration__exa__exa_get_contents | exa.exa_get_contents | Read | Retrieve the full text contents and optional highlights for a list of Exa document IDs. Use this after a search or findSimilar call to get the actual page content. |
integration__exa__exa_search_and_contents | exa.exa_search_and_contents | Read | Search the web and retrieve full page contents in one call. Combines search and content retrieval into a single request for efficiency. Returns results with both metadata and full text content. |
integration__exa__exa_get_current_user | exa.exa_get_current_user | Read | Get the currently authenticated Exa user's profile information, including email and API usage details. Useful for verifying credentials. |