# How to integrate Chatfai MCP with OpenClaw

```json
{
  "title": "How to integrate Chatfai MCP with OpenClaw",
  "toolkit": "Chatfai",
  "toolkit_slug": "chatfai",
  "framework": "OpenClaw",
  "framework_slug": "openclaw",
  "url": "https://composio.dev/toolkits/chatfai/framework/openclaw",
  "markdown_url": "https://composio.dev/toolkits/chatfai/framework/openclaw.md",
  "updated_at": "2026-05-12T10:06:06.306Z"
}
```

## Introduction

OpenClaw is the fastest growing agent harness out there, which can work 24/7 to automate almost any kind of tasks. However, its capabilities are limited to the tools it has access to. Composio allows your OpenClaw to access Chatfai with authentication management handled for you. You can execute actions on Chatfai via your favorite OpenClaw interface (Telegram, WhatsApp, TUI, etc), whichever you prefer.

## Also integrate Chatfai with

- [OpenAI Agents SDK](https://composio.dev/toolkits/chatfai/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/chatfai/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/chatfai/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/chatfai/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/chatfai/framework/codex)
- [Hermes](https://composio.dev/toolkits/chatfai/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/chatfai/framework/cli)
- [Google ADK](https://composio.dev/toolkits/chatfai/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/chatfai/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/chatfai/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/chatfai/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/chatfai/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/chatfai/framework/crew-ai)

## TL;DR

### Why use Composio?
Apart from a managed and hosted MCP server, you will get:
- Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
- Handling Large tool responses out of LLM context to minimize context rot.
- Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

## Connect Chatfai to OpenClaw

### How to install Chatfai with OpenClaw
### Using Composio API Key and Setup Prompt
- Go to [dashboard.composio.dev](https://dashboard.composio.dev/login?next=/~/org/connect/clients/openclaw&utm_source=toolkits&utm_medium=framework_template&utm_campaign=openclaw&utm_content=setup_prompt)
- Copy the setup prompt
- Run it in your OpenClaw chat interface.
- Authenticate Chatfai from the [dashboard](https://dashboard.composio.dev/login?next=/~/org/connect/clients/openclaw&utm_source=toolkits&utm_medium=framework_template&utm_campaign=openclaw&utm_content=authenticate)
- Go back to your OpenClaw interface and start asking questions.
### Using OpenClaw/Composio Plugin
1. Install OpenClaw Composio plugin

```bash
openclaw plugins install @composio/openclaw-plugin
```

## What is the Chatfai MCP server, and what's possible with it?

The Chatfai MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Chatfai account. It provides structured and secure access to the Chatfai platform, so your agent can browse, retrieve, and interact with AI-generated fictional characters from across media on your behalf.
- Fetch character details by ID: Instantly retrieve comprehensive information on any public AI character by providing its unique identifier.
- Access character backgrounds and attributes: Let your agent pull background stories, personality traits, and media origins for specific characters.
- Enable character discovery: Use your agent to surface information about new or trending public characters in the Chatfai ecosystem.
- Integrate character data into chat experiences: Seamlessly incorporate retrieved character info into custom conversational flows or creative projects.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `CHATFAI_CHATFAI_GET_PUBLIC_CHARACTER_BY_ID` | Get Public Character By ID | Tool to retrieve a public character by its ID. Use when you need to fetch details of a single public character by providing its unique ID. |
| `CHATFAI_LIST_CHATFAI_CONVERSATIONS` | List Conversations | Tool to list conversations for the authenticated user. Use when you need to retrieve the user's chat conversations or verify authentication status. |
| `CHATFAI_SEARCH_CHARACTERS` | Search Characters | Tool to search for public characters on ChatFAI by name or keyword. Use when you need to find characters matching a specific search query. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

The Chatfai MCP server provides comprehensive access to Chatfai operations through Composio. Once connected, you can perform all major Chatfai actions directly from OpenClaw using natural language commands.

## Complete Code

None listed.

## Conclusion

### Conclusion
You've successfully integrated Chatfai with OpenClaw using Composio plugin. Now interact with Chatfai directly from your terminal, Web UI, or any messenger app using natural language commands.
Key benefits of this setup:
- Seamless integration across TUI, Web UIs, and Messenger apps like Telegram, WhatsApp, Slack, etc.
- Natural language commands for Chatfai operations
- Managed authentication through Composio
- Access to 20,000+ tools across 1000+ apps for cross-app workflows
- Programmatic tool calling for complex tool chaining
Next steps:
- Try asking OpenClaw to perform various Chatfai operations
- Explore cross-app workflows by connecting more toolkits like Calendar, Slack, Notion, etc.
- Build complex automation scripts that leverage OpenClaw's 24/7 running capabilities

## How to build Chatfai MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/chatfai/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/chatfai/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/chatfai/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/chatfai/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/chatfai/framework/codex)
- [Hermes](https://composio.dev/toolkits/chatfai/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/chatfai/framework/cli)
- [Google ADK](https://composio.dev/toolkits/chatfai/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/chatfai/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/chatfai/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/chatfai/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/chatfai/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/chatfai/framework/crew-ai)

## Related Toolkits

- [Youtube](https://composio.dev/toolkits/youtube) - YouTube is a leading video-sharing platform for uploading, streaming, and discovering content. It empowers creators and businesses to reach global audiences and monetize their work.
- [Amara](https://composio.dev/toolkits/amara) - Amara is a collaborative platform for creating and managing subtitles and captions for videos. It helps make content accessible and multilingual for global audiences.
- [Cats](https://composio.dev/toolkits/cats) - Cats is an API with a huge library of cat images, breed data, and cat facts. It makes finding adorable cat photos and trivia effortless for your apps and users.
- [Cincopa](https://composio.dev/toolkits/cincopa) - Cincopa is a multimedia platform for uploading, managing, and customizing videos, images, and audio. It helps you deliver engaging media experiences with robust APIs and flexible integrations.
- [Dungeon fighter online](https://composio.dev/toolkits/dungeon_fighter_online) - Dungeon Fighter Online (DFO) is an arcade-style, side-scrolling action RPG packed with dynamic combat and progression. Play solo or with friends to battle monsters, complete quests, and upgrade your characters.
- [Elevenlabs](https://composio.dev/toolkits/elevenlabs) - Elevenlabs is an advanced AI voice generation platform for lifelike, multilingual speech synthesis. Perfect for creating natural voices for videos, apps, and business content in seconds.
- [Elevenreader](https://composio.dev/toolkits/elevenreader) - Elevenreader is an AI-powered text-to-speech service by ElevenLabs that converts written content into lifelike audio. It enables fast, natural audio generation from any text.
- [Epic games](https://composio.dev/toolkits/epic_games) - Epic Games is a leading video game publisher and digital storefront, known for Fortnite and Unreal Engine. It lets gamers access, manage, and purchase games all in one place.
- [Fal.ai](https://composio.dev/toolkits/fal_ai) - Fal.ai is a generative media platform offering 600+ AI models for images, video, voice, and audio. Developers use Fal.ai for fast, scalable access to cutting-edge generative AI tools.
- [Giphy](https://composio.dev/toolkits/giphy) - Giphy is the largest online library for searching and sharing GIFs and stickers. Instantly add vibrant animated content to your apps, chats, and workflows.
- [Headout](https://composio.dev/toolkits/headout) - Headout is a global platform for booking travel experiences, tours, and entertainment. It helps users discover and secure activities at top destinations, all in one place.
- [Imagekit io](https://composio.dev/toolkits/imagekit_io) - ImageKit.io is a cloud-based media management platform for image and video delivery. Instantly optimize, transform, and deliver visuals globally via a lightning-fast CDN.
- [Listennotes](https://composio.dev/toolkits/listennotes) - Listennotes is a powerful podcast search engine with a massive global database. Discover, search, and curate podcasts from around the world in seconds.
- [News api](https://composio.dev/toolkits/news_api) - News api is a REST API for searching and retrieving live news articles from across the web. Instantly access headlines, coverage, and breaking stories from thousands of sources.
- [RAWG Video Games Database](https://composio.dev/toolkits/rawg_video_games_database) - RAWG Video Games Database is the largest video game discovery and info service. Instantly access comprehensive details, ratings, and release dates for thousands of games.
- [Seat geek](https://composio.dev/toolkits/seat_geek) - SeatGeek is a live event platform offering APIs for concerts, sports, and theater data. Instantly access events, venues, and performers info for smarter ticketing and discovery.
- [Shotstack](https://composio.dev/toolkits/shotstack) - Shotstack is a cloud platform for programmatically generating videos, images, and audio. Automate creative content production at scale with flexible RESTful APIs.
- [Spotify](https://composio.dev/toolkits/spotify) - Spotify is a streaming service for music and podcasts with millions of tracks from artists worldwide. Enjoy personalized playlists, recommendations, and seamless listening across all your devices.
- [Ticketmaster](https://composio.dev/toolkits/ticketmaster) - Ticketmaster is a global platform for event discovery, ticket sales, and live entertainment management. Get real-time access to events and streamline ticketing for fans and organizers.
- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Chatfai MCP?

With a standalone Chatfai MCP server, the agents and LLMs can only access a fixed set of Chatfai tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Chatfai and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with OpenClaw?

Yes, you can. OpenClaw fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Chatfai tools.

### Can I manage the permissions and scopes for Chatfai while using Tool Router?

Yes, absolutely. You can configure which Chatfai scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Chatfai data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
