Skip to content

MCP

The Model Context Protocol (MCP) is an open standard that allows Cosine to connect with external tools, APIs, and data sources. Think of MCP as a USB-C port for AI applications — providing a standardized way to plug in capabilities like database access, file system operations, API integrations, and more.

MCP (Model Context Protocol) is an open-source standard developed by Anthropic that enables secure, two-way connections between AI applications and external systems. With MCP, you can:

  • Access databases — Query PostgreSQL, MySQL, or any database with an MCP server
  • Interact with APIs — Connect to GitHub, Slack, Jira, or custom APIs
  • File system operations — Read and write files in controlled directories
  • Browser automation — Control browsers through specialized MCP servers
  • Custom integrations — Build your own MCP servers for proprietary tools

When you configure an MCP server in Cosine:

  1. The agent starts and manages the MCP server process
  2. Cosine discovers the tools (functions) exposed by the server
  3. When relevant, Cosine can call these tools to perform actions
  4. All tool executions require your approval (unless using auto-accept)

MCP servers run locally on your machine (for CLI and Desktop) or in managed environments (for Cloud).

Terminal window
cos mcp add --transport http stripe https://mcp.stripe.com/

For local stdio servers, place -- between the server name and the command:

Terminal window
cos mcp add -e API_KEY=xxx my-server -- npx my-mcp-server
Terminal window
cos start

Cosine will automatically discover and connect to your configured MCP servers.

You: List all files in my projects directory
Cosine: I'll list the files for you. [Uses mcp_filesystem tool]

MCP servers are configured in ~/.cosine/mcp.json (for personal/local MCPs) or through Team Settings (for centrally managed team MCPs).

  • Configuration — Detailed config format, transport types, and fields
  • Examples — Example configurations for popular MCP servers
  • Server management — Adding, managing, troubleshooting, and building custom servers
  • Customizing — Skills, plugins, hooks, and other customization primitives
  • Integrations — Native integrations with GitHub, Slack, Linear, and more