๐ Building with MCP
How plugins and connectors work under the hood โ from installing pre-built ones in Cowork to building your own
MCP (Model Context Protocol) is the open standard that powers Claude's plugin system. Every time Cowork connects to Gmail, Slack, or any other service, it's using MCP under the hood. You can install pre-built connectors with one click or build your own.
- โ Cowork plugins are MCP servers โ they connect Claude to external tools
- โ Architecture: Host (Cowork/Claude Desktop) โ Client โ Server (your tool)
- โ Pre-built connectors exist for Gmail, Slack, Google Drive, GitHub, and 50+ more
- โ Developers can build custom MCP servers in Python or TypeScript
- โ One standard protocol means one connector works everywhere Claude runs
What is MCP?
Model Context Protocol (MCP) is an open standard created by Anthropic that lets AI models like Claude connect to external tools and data sources. If you've ever installed a plugin in Cowork to connect your Gmail or Slack, you've already used MCP โ you just didn't need to know the technical details.
Think of MCP as a universal adapter. Before MCP, connecting Claude to your database, email, or project management tool required custom code for each integration. MCP standardizes this into a simple protocol so one connector works across Cowork, Claude Desktop, Claude Code, and any other MCP-compatible app.
MCP is to AI what USB was to peripherals. Before USB, every device needed its own connector. MCP creates one standard protocol so any AI can talk to any tool. The ecosystem already has 50+ pre-built servers with over 80,000 GitHub stars.
How Cowork Uses MCP
Every plugin you install in Cowork is an MCP server running behind the scenes. When you ask Claude to check your email, here's what actually happens:
You ask: 'Check my Gmail for any messages from Sarah this week'
Cowork (the MCP Host) sees that this requires the Gmail plugin
The MCP Client inside Cowork routes the request to the Gmail MCP Server
The Gmail server searches your inbox using your authenticated credentials
Results come back through the MCP Client to Cowork
Claude reads the results and gives you a summary in plain language
You never see any of this plumbing โ it just works. But understanding the architecture helps when things go wrong or when you want to build your own connector.
When you install a Gmail plugin in Cowork, what is actually happening under the hood?
Installing Connectors in Cowork
The easiest way to add MCP connectors is through Cowork's plugin system. No configuration files, no terminal commands โ just ask Claude or browse the marketplace.
The Old Way (Manual Config)
โ Edit JSON config files by hand
โ Install packages from the command line
โ Manage API tokens in environment variables
โ Restart the app after each change
โ Debug connection issues in terminal logs
The Cowork Way
โ Ask Claude 'connect my Gmail' or browse the plugin marketplace
โ One-click install with guided OAuth setup
โ Credentials managed securely by the plugin
โ Connectors activate immediately โ no restart
โ Claude tells you if something isn't working and offers to fix it
Popular connectors you can install right now in Cowork:
Gmail โ Read your inbox, draft replies, search messages, create drafts. Perfect for email triage and follow-up automation.
Slack โ Read channels, send messages, search conversation history. Great for catching up on what you missed.
Google Drive โ Access documents and spreadsheets. Let Claude read your team docs and create summaries.
Vercel โ Deploy web projects, check build logs, manage domains. For teams shipping web apps.
GitHub โ Manage repos, issues, PRs, and code search. Connect your development workflow to Claude.
More available โ Ask Claude 'what connectors are available?' to browse the full marketplace.
Setting Up MCP Manually (Claude Desktop & Claude Code)
If you're using Claude Desktop (the standard chat app) or Claude Code (the terminal tool), you can configure MCP servers manually via JSON config files. This gives you more control and access to community-built servers that might not be in the Cowork marketplace yet.
Claude Desktop โ Edit your config file at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Claude Code โ Add servers to your project's .mcp.json file:
Restart Claude Desktop and you'll see a hammer icon indicating MCP tools are available. In Claude Code, servers activate automatically when you open a project with an .mcp.json file.
Building a Custom MCP Server
When the pre-built connectors don't cover your needs, you can build your own. This is especially useful for internal company tools, proprietary databases, or niche APIs. MCP servers can be written in Python or TypeScript.
The description field is how Claude decides when to use your tool. A vague description like 'does weather stuff' means Claude won't know when to call it. Be specific: 'Get current weather for a city. Returns temperature in Fahrenheit and sky conditions.'
MCP Best Practices
Don't Do This
โ One giant 'manage_everything' tool
โ Hardcode API keys in server code
โ Give servers admin database access
โ Vague tool descriptions
โ Swallow errors silently
Do This Instead
โ Separate tools for query, insert, update, delete
โ Use environment variables for all secrets
โ Give servers minimum required permissions
โ Write clear, specific descriptions with input/output details
โ Return helpful error messages Claude can act on
What's Next?
Ready for more?
Browse all Getting Started guides