Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
providers mcp update
Sushmithamallesh6d0ba7d79eb2
diff --git a/fern/pages/src/mcp/providers.mdx b/fern/pages/src/mcp/providers.mdxindex afd5819f5..87e165802 100644--- a/fern/pages/src/mcp/providers.mdx+++ b/fern/pages/src/mcp/providers.mdx@@ -1,151 +1,42 @@----title: MCP providers-subtitle: Using MCP servers with AI frameworks+title: Provider integrations+subtitle: Connect MCP servers to AI frameworks----Connect your MCP servers to popular AI frameworks and agents.+Integrate your MCP servers with popular AI SDKs and frameworks.-## Anthropic (Claude)+## Anthropic SDK-Use MCP servers with Claude API and Claude Desktop.+Use MCP servers with the Anthropic Claude API.<CodeGroup><CodeGroupItem title="Python">-```python-# Python SDK - Anthropic integration coming soon-# Use the standard MCP server URL generation for now-instance = server.generate("[email protected]")-print(f"MCP URL for Claude: {instance['url']}")-```+<SnippetCode src="fern/snippets/mcp/python/anthropic-provider.py" /></CodeGroupItem><CodeGroupItem title="TypeScript">-```typescript-import Anthropic from '@anthropic-ai/sdk';--const anthropic = new Anthropic({- apiKey: process.env.ANTHROPIC_API_KEY,-});--// Get MCP server URL-const serverUrls = await composio.mcp.getServer(- server.id,-);--// Use with Claude (when MCP support is available)-const stream = await anthropic.beta.messages.stream({- model: "claude-3-5-sonnet-20241022",- mcp_servers: serverUrls,- messages: [{- role: "user",- content: "Fetch my latest emails"- }]-});-```+<SnippetCode src="fern/snippets/mcp/typescript/anthropic-provider.ts" /></CodeGroupItem></CodeGroup>-## OpenAI+## OpenAI SDKIntegrate MCP servers with OpenAI GPT models.<CodeGroup><CodeGroupItem title="Python">-```python-from openai import OpenAI--client = OpenAI()--# Get MCP server instance-instance = server.generate("[email protected]")--# Use the MCP URL with OpenAI (hypothetical integration)-# OpenAI MCP support details coming soon-```+<SnippetCode src="fern/snippets/mcp/python/openai-provider.py" /></CodeGroupItem><CodeGroupItem title="TypeScript">-```typescript-import OpenAI from 'openai';--const openai = new OpenAI({- apiKey: process.env.OPENAI_API_KEY,-});--// Get MCP server URL-const serverUrls = await composio.mcp.getServer(- server.id,-);--// Integration with OpenAI (when available)-// Use serverUrls with OpenAI's MCP support-```+<SnippetCode src="fern/snippets/mcp/typescript/openai-provider.ts" /></CodeGroupItem></CodeGroup>-## Vercel AI SDK--Use MCP servers with Vercel's AI SDK.--```typescript-import { experimental_createMCPClient as createMCPClient } from 'ai';-import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';--// Get server URL-const serverUrls = await composio.mcp.getServer(- server.id,-);--// Create MCP client-const mcpClient = await createMCPClient({- name: 'composio-mcp-client',- transport: new SSEClientTransport(new URL(serverUrls.url)),-});--// Use with Vercel AI-const tools = await mcpClient.tools();-```--## Cursor IDE--Configure MCP servers in Cursor settings.--```json-{- "mcpServers": {- "composio": {- "command": "npx",- "args": [- "-y",- "@modelcontextprotocol/server-compose",- "YOUR_MCP_SERVER_URL"- ]- }- }-}-```--## Claude Desktop--Add to Claude Desktop configuration:--**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`-**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`--```json-{- "mcpServers": {- "composio-gmail": {- "command": "node",- "args": [- "/path/to/mcp-server.js",- "YOUR_MCP_SERVER_URL"- ]- }- }-}-```+## Mastra++Use MCP servers with Mastra framework.++<SnippetCode src="fern/snippets/mcp/typescript/mastra-provider.ts" />+## Quick integration guide@@ -167,23 +58,15 @@ Add to Claude Desktop configuration:</Step></Steps>-## Supported clients+## Supported frameworks-- **Claude Desktop** - Native MCP support-- **Cursor IDE** - Built-in MCP integration-- **Vercel AI SDK** - Experimental MCP support-- **Custom clients** - Any MCP-compatible client+- **Anthropic SDK** - Claude API integration (coming soon)+- **OpenAI SDK** - GPT models integration (coming soon)+- **Mastra** - Framework with native MCP client support+- **Custom integrations** - Any MCP-compatible SDK## Next steps-<Cards>- <Card title="Quickstart" href="/docs/mcp-quickstart" icon="rocket">- Get started with MCP servers- </Card>- <Card title="Implementation guide" href="/docs/mcp-implementation" icon="book">- Complete development guide- </Card>- <Card title="Troubleshooting" href="/docs/troubleshooting/mcp" icon="wrench">- Common issues and solutions- </Card>-</Cards>\ No newline at end of file+- [Quickstart](/docs/mcp-quickstart) - Get started with MCP servers+- [Server management](/docs/mcp-server-management) - Manage your MCP servers+- [Troubleshooting](/docs/troubleshooting/mcp) - Common issues and solutions\ No newline at end of filediff --git a/fern/snippets/mcp/python/anthropic-provider.py b/fern/snippets/mcp/python/anthropic-provider.pynew file mode 100644index 000000000..53dba0763--- /dev/null+++ b/fern/snippets/mcp/python/anthropic-provider.py@@ -0,0 +1,37 @@+from anthropic import Anthropic+from composio import Composio++# Initialize clients+composio = Composio()+anthropic = Anthropic(api_key="your-anthropic-api-key")++# Create MCP server with GitHub and Linear tools+server = composio.mcp.create(+ name="dev-workflow-server",+ toolkits=[+ {"toolkit": "github", "auth_config": "ac_github_id"},+ {"toolkit": "linear", "auth_config": "ac_linear_id"}+ ],+ allowed_tools=["GITHUB_LIST_PRS", "GITHUB_CREATE_COMMENT", "LINEAR_CREATE_ISSUE"]+)++# Generate MCP instance for user+instance = server.generate("[email protected]")++# Use MCP with Anthropic to manage development workflow+response = anthropic.beta.messages.create(+ model="claude-3-5-sonnet-20241022",+ max_tokens=1000,+ messages=[{+ "role": "user",+ "content": "Check my GitHub PRs for review comments, create Linear tasks for any requested changes, and update the PR descriptions with task links"+ }],+ mcp_servers=[{+ "type": "url",+ "url": instance['url'],+ "name": "composio-mcp-server"+ }],+ betas=["mcp-client-2025-01-15"] # Enable MCP beta+)++print(response.content)\ No newline at end of filediff --git a/fern/snippets/mcp/python/openai-provider.py b/fern/snippets/mcp/python/openai-provider.pynew file mode 100644index 000000000..4ea8b32f8--- /dev/null+++ b/fern/snippets/mcp/python/openai-provider.py@@ -0,0 +1,36 @@+from openai import OpenAI+from composio import Composio++# Initialize clients+composio = Composio()+openai = OpenAI(api_key="your-openai-api-key")++# Create MCP server with Google Sheets and Notion tools+server = composio.mcp.create(+ name="data-docs-server",+ toolkits=[+ {"toolkit": "googlesheets", "auth_config": "ac_sheets_id"},+ {"toolkit": "notion", "auth_config": "ac_notion_id"}+ ],+ allowed_tools=["GOOGLESHEETS_GET_DATA", "GOOGLESHEETS_UPDATE_DATA", "NOTION_CREATE_PAGE"]+)++# Generate MCP instance for user+instance = server.generate("[email protected]")++# Use MCP with OpenAI for data management+response = openai.responses.create(+ model="gpt-5",+ tools=[+ {+ "type": "mcp",+ "server_label": "composio-server",+ "server_description": "Composio MCP server with Google Sheets and Notion integrations",+ "server_url": instance['url'],+ "require_approval": "never",+ },+ ],+ input="Export the Q4 metrics from Google Sheets and create a comprehensive Notion page with charts and analysis",+)++print("OpenAI MCP Response:", response.output_text)\ No newline at end of filediff --git a/fern/snippets/mcp/typescript/anthropic-provider.ts b/fern/snippets/mcp/typescript/anthropic-provider.tsnew file mode 100644index 000000000..698b6ebb3--- /dev/null+++ b/fern/snippets/mcp/typescript/anthropic-provider.ts@@ -0,0 +1,40 @@+import Anthropic from '@anthropic-ai/sdk';+import { Composio } from '@composio/core';++// Initialize clients+const composio = new Composio();+const anthropic = new Anthropic({+ apiKey: process.env.ANTHROPIC_API_KEY,+});++// Create MCP server with Google Sheets tools+const server = await composio.mcp.create(+ "analytics-server",+ {+ toolkits: [+ { toolkit: "googlesheets", authConfigId: "ac_sheets_id" }+ ],+ allowedTools: ["GOOGLESHEETS_GET_DATA", "GOOGLESHEETS_UPDATE_DATA", "GOOGLESHEETS_CREATE_SHEET"]+ }+);++// Generate MCP instance for user+const instance = await server.generate("[email protected]");++// Use MCP with Anthropic for spreadsheet operations+const response = await anthropic.beta.messages.create({+ model: "claude-3-5-sonnet-20241022",+ max_tokens: 1000,+ messages: [{+ role: "user",+ content: "Analyze the sales data in my Google Sheets 'Q4 Revenue' spreadsheet, calculate month-over-month growth, and add a new summary sheet with visualizations"+ }],+ mcp_servers: [{+ type: "url",+ url: instance.url,+ name: "composio-mcp-server"+ }],+ betas: ["mcp-client-2025-01-15"] // Enable MCP beta+});++console.log(response.content);\ No newline at end of filediff --git a/fern/snippets/mcp/typescript/mastra-provider.ts b/fern/snippets/mcp/typescript/mastra-provider.tsnew file mode 100644index 000000000..93906105a--- /dev/null+++ b/fern/snippets/mcp/typescript/mastra-provider.ts@@ -0,0 +1,52 @@+import { MCPClient } from "@mastra/mcp";+import { openai } from "@ai-sdk/openai";+import { Agent } from "@mastra/core/agent";+import { Composio } from "@composio/core";++// Initialize Composio+const composio = new Composio();++// Create MCP server with GitHub, Linear, and Notion tools+const server = await composio.mcp.create(+ "dev-automation-server",+ {+ toolkits: [+ { toolkit: "github", authConfigId: "ac_github_id" },+ { toolkit: "linear", authConfigId: "ac_linear_id" },+ { toolkit: "notion", authConfigId: "ac_notion_id" }+ ],+ allowedTools: [+ "GITHUB_LIST_ISSUES", "GITHUB_CREATE_ISSUE",+ "LINEAR_CREATE_ISSUE", "LINEAR_UPDATE_ISSUE",+ "NOTION_CREATE_PAGE", "NOTION_UPDATE_PAGE"+ ]+ }+);++// Generate MCP instance for user+const instance = await server.generate("[email protected]");++// Create MCP client with Composio server+export const mcpClient = new MCPClient({+ id: "composio-mcp-client",+ servers: {+ composio: { url: new URL(instance.url) },+ }+});++// Create a development workflow agent+export const devAgent = new Agent({+ name: "Dev Assistant",+ description: "AI assistant for development workflow automation",+ instructions: "Help manage GitHub repos, Linear issues, and Notion documentation.",+ model: openai("gpt-4-turbo"),+ tools: await mcpClient.getTools()+});++// Example: Automate development workflow+(async () => {+ const response = await devAgent.generate(+ "Review open GitHub issues, create Linear tasks for bugs labeled 'priority', and update the Notion roadmap page"+ );+ console.log(response.text);+})();\ No newline at end of filediff --git a/fern/snippets/mcp/typescript/openai-provider.ts b/fern/snippets/mcp/typescript/openai-provider.tsnew file mode 100644index 000000000..5addfc5d8--- /dev/null+++ b/fern/snippets/mcp/typescript/openai-provider.ts@@ -0,0 +1,40 @@+import OpenAI from 'openai';+import { Composio } from '@composio/core';++// Initialize clients+const composio = new Composio();+const openai = new OpenAI({+ apiKey: process.env.OPENAI_API_KEY,+});++// Create MCP server with Linear and Notion tools+const server = await composio.mcp.create(+ "project-docs-server",+ {+ toolkits: [+ { toolkit: "linear", authConfigId: "ac_linear_id" },+ { toolkit: "notion", authConfigId: "ac_notion_id" }+ ],+ allowedTools: ["LINEAR_LIST_ISSUES", "LINEAR_GET_ISSUE", "NOTION_CREATE_PAGE"]+ }+);++// Generate MCP instance for user+const instance = await server.generate("[email protected]");++// Use MCP with OpenAI for project documentation+const response = await openai.responses.create({+ model: "gpt-5",+ tools: [+ {+ type: "mcp",+ server_label: "composio-server",+ server_description: "Composio MCP server with Linear and Notion integrations",+ server_url: instance.url,+ require_approval: "never",+ },+ ],+ input: "Find all completed Linear issues from this sprint and create a Notion page documenting the release notes",+});++console.log("OpenAI MCP Response:", response.output_text);\ No newline at end of file