Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | # Mcp Example |
| 2 | |
| 3 | This example demonstrates how to use Composio SDK for mcp. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | 1. **Install dependencies:** |
| 8 | ```bash |
| 9 | pnpm install |
| 10 | ``` |
| 11 | |
| 12 | 2. **Configure environment:** |
| 13 | ```bash |
| 14 | cp .env.example .env |
| 15 | ``` |
| 16 | |
| 17 | Then edit `.env` and add your API keys: |
| 18 | - `COMPOSIO_API_KEY`: Get it from [Composio Dashboard](https://app.composio.dev) |
| 19 | |
| 20 | ## Running the Example |
| 21 | |
| 22 | ```bash |
| 23 | # Run the example |
| 24 | pnpm start |
| 25 | |
| 26 | # Run in development mode (with file watching) |
| 27 | pnpm dev |
| 28 | ``` |
| 29 | |
| 30 | ## What This Example Does |
| 31 | |
| 32 | - Initializes Composio SDK |
| 33 | - Fetches available tools |
| 34 | - Demonstrates basic usage patterns |
| 35 | |
| 36 | ## Customization |
| 37 | |
| 38 | Edit `src/index.ts` to: |
| 39 | - Add specific apps you want to integrate with |
| 40 | - Implement your business logic |
| 41 | - Add error handling and logging |
| 42 | |
| 43 | ## Related Examples |
| 44 | |
| 45 | - [OpenAI Example](../openai) - Shows integration with OpenAI |
| 46 | - [LangChain Example](../langchain) - Shows integration with LangChain |
| 47 | - [More Examples](../) - Browse all available examples |
| 48 | |
| 49 | ## Support |
| 50 | |
| 51 | - [Documentation](https://docs.composio.dev) |
| 52 | - [Discord Community](https://discord.gg/composio) |
| 53 | - [GitHub Issues](https://github.com/ComposioHQ/composio/issues) |