Cody MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Cody MCP or direct API to search company knowledge, summarize documents, answer business questions, and automate workflows through natural language.

Cody logoCody
Api Key

Cody is an AI assistant built for businesses, trained on your company's knowledge and data. It delivers instant answers and insights, tailored for your team.

21 Tools

Try Cody now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Cody
Try asking
TOOLS

Supported Tools

Every Cody action and event your agent gets out of the box.

Create Conversation

Tool to create a new conversation with a specified bot.

Create Document

Tool to create a new document with text or HTML content in Cody AI.

Create Document From File

Create a Cody knowledge-base document from a previously uploaded file key in a destination folder.

Create Document from Webpage

Tool to create a document from a publicly accessible webpage URL.

Create Folder

Tool to create a new folder in Cody AI for organizing content.

Delete Conversation

Tool to delete a conversation by its ID.

Delete Document

Tool to delete a document by id.

Get Conversation

Fetch details of a Cody AI conversation by its ID.

Get Document

Tool to retrieve a specific document by its identifier from Cody AI.

Get Folder

Tool to retrieve a specific folder by its identifier.

Get Message

Tool to fetch a specific message by its ID from Cody AI.

Get Upload Signed URL

Tool to get an AWS S3 signed upload URL for file uploads.

List Bots

List a page of bots in a Cody account, optionally filtering by keyword.

List Conversations

List a page of conversations, optionally filtering by bot or name keyword and including document associations.

List Documents

List a page of documents from a Cody AI account, optionally filtered by folder, conversation, or keyword.

List Folders

List a page of folders in the account, optionally filtered by keyword, with pagination metadata.

List Messages

Tool to retrieve a paginated list of messages from Cody, optionally filtered by conversation.

Send Message

Tool to send a message to Cody AI and receive an AI-generated response.

Send Message for Stream

Tool to send a message to Cody AI and receive a Server-Sent Events (SSE) stream URL for the AI response.

Update Conversation

Update a conversation by ID with its name and bot ID, optionally setting document IDs to limit the bot's knowledge base.

Update Folder

Tool to update a folder by its ID.

SETUP GUIDE

Connect Cody MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["cody"],
  mcp: true,
});
Create a session scoped to Cody and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search company handbook for remote work policy.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Cody request
SETUP GUIDE

Connect Cody API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["cody"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Cody
3

Run Cody tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search company handbook for remote work policy." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Cody tool calls through the session, and print the final answer

Why Use Composio?

AI Native Cody Integration

  • Supports both Cody MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Cody data

Managed Auth

  • Built-in API key handling with secure storage
  • Central place to manage, scope, and revoke Cody access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Cody
  • Scoped, least privilege access to Cody resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Cody.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Cody tool your agent needs.Free to start.

Start building