Cody MCP server

Connect Cody to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Cody MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the get file upload url tool in Cody
  • Use the send message for stream tool in Cody
  • Use the get conversation tool in Cody
  • Use the get document tool in Cody
  • Use the delete document tool in Cody
  • Use the create document from content tool in Cody

Supported Tools

get_upload_url

Get File Upload URL

Get a signed file upload URL for uploading a file to the knowledge base. Returns a URL for uploading via PUT and a key to use when creating a document from the uploaded file.

send_message_stream

Send Message for Stream

Send a message in a conversation discovered with list_conversations and get a streaming URL for receiving the AI response as Server-Sent Events (SSE). Useful for real-time progressive rendering of responses.

get_conversation

Get Conversation

Retrieve a conversation by its ID. Call list_conversations to discover available conversations.

get_document

Get Document

Retrieve a knowledge base document's learning status and content URL. Call list_documents to discover document IDs.

delete_document

Delete Document

Permanently delete a knowledge base document. Call list_documents to discover document IDs.

create_document_from_content

Create Document from Content

Create a knowledge base document from text or HTML content. Call list_folders to discover the target folder. Structured HTML with headings and paragraphs yields best results for the AI.

list_documents

List Documents

Retrieve knowledge base documents. Filter by folder, conversation (focus mode documents), or search by keyword.

send_message

Send Message

Send a message within a conversation discovered with list_conversations and receive the AI-generated response based on the bot's knowledge base. Returns the full response in a single call.

delete_conversation

Delete Conversation

Permanently delete a conversation and its message history. Call list_conversations to discover conversation IDs.

create_document_from_file

Create Document from File

Create a knowledge base document from a previously uploaded file. Requires a key obtained from the "Get File Upload URL" tool after uploading the file.

list_messages

List Messages

Retrieve message history for a conversation discovered with list_conversations. Returns both user messages and AI-generated responses.

list_folders

List Folders

Retrieve all folders used to organize your knowledge base documents. Optionally filter by name keyword.

get_folder

Get Folder

Retrieve a knowledge base folder by its ID. Call list_folders to discover available folders.

create_conversation

Create Conversation

Start a new conversation with an AI bot discovered with list_bots. Optionally enable focus mode by specifying document IDs to restrict the bot's knowledge to only those documents.

list_bots

List Bots

Retrieve all AI bots configured in your Cody account. Bots are AI assistants set up with access to specific knowledge base folders and customized behavior. Optionally filter by name keyword.

create_document_from_webpage

Create Document from Webpage

Create a knowledge base document by crawling a publicly accessible webpage URL. Call list_folders to discover the target folder. Cody will ingest the page content automatically.

create_folder

Create Folder

Create a new folder to organize knowledge base documents.

update_conversation

Update Conversation

Update a conversation's name, bot, or focus mode documents. Call list_conversations and list_bots to discover IDs.

update_folder

Update Folder

Rename an existing knowledge base folder. Call list_folders to discover folder IDs.

list_conversations

List Conversations

Retrieve conversations with AI bots. Filter by bot or search by keyword.

get_message

Get Message

Retrieve a message by an ID from list_messages or send_message, including content and metadata about whether it was AI-generated.

download_document

Download Document

Download a knowledge base document as an HTML file. Call list_documents to discover the document ID.

Connect Cody to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Cody in Metorial. In your Metorial portal, enable the Cody MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Cody tools.

Run Cody through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Cody and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Cody tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Cody

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Apolloio

Search and prospect B2B contacts and companies from a database of over 275 million people and 70 million organizations. Enrich people and company data with emails, phone numbers, and firmographic details. Create and manage contacts, accounts, deals, and tasks. Add contacts to email sequences and manage sequence statuses. Log and search call records. Perform bulk operations for contact creation, account creation, task creation, and data enrichment.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Hubspot

Create, read, update, and delete CRM objects including contacts, companies, deals, tickets, and custom objects. Manage associations between CRM records. Track engagements such as calls, emails, meetings, notes, and tasks. Send transactional and marketing emails, manage campaigns, and handle subscription preferences. Build and manage marketing workflows, sequences, and automation actions. Manage CMS content including blog posts, landing pages, and HubDB tables. Handle commerce data including products, orders, invoices, quotes, and payments. Create and manage contact lists for segmentation. Configure deal, ticket, and order pipelines with custom stages. Search and filter CRM records. Bulk import and export CRM data. Manage users, teams, and account settings.

Technical notes for Cody

Use Cody business AI assistants with your knowledge base. Discover configured bots, organize documents in folders, import text, files, and webpages, and download documents as HTML. Create conversations with optional document focus, inspect response sources and usage, and receive AI answers directly or through streaming.

Frequently asked questions

Common questions about connecting Cody to AI agents with Metorial.

  1. How many tools does the Cody MCP server have?
    The Cody MCP server exposes 22 tools, including Get File Upload URL, Send Message for Stream, Get Conversation. Each one is governed and traced through Metorial.
  2. Cody exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Cody MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Cody and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Cody MCP server yourself or use the hosted gateway.

Connect Cody to production AI agents

See how Metorial gives your team governed access to Cody, with tracing and security controls built in.