ChatterMate MCP Server
The ChatterMate MCP server (chattermate-mcp) exposes your ChatterMate instance to AI agents
through the Model Context Protocol. Connect it to Claude, an
IDE assistant, or any MCP-compatible client and the agent can read and manage your agents,
workflows, and knowledge sources on your behalf.
This is the inverse of MCP Tools. MCP Tools let your ChatterMate
agents call out to external services. The MCP Server described here lets an external AI
agent call in to ChatterMate to configure it.
How it works
The server is a thin, stdio-based bridge over the ChatterMate API. It ships in the samechattermate-sdk package as the CLI and is authenticated with a
Personal Access Token.
stdio transport
Launched by your MCP client as a subprocess — the standard way agents run local MCP servers.
Token auth
Uses a
cmat_ Personal Access Token from the CHATTERMATE_TOKEN environment variable.Scoped to your org
Every action runs as the token’s owner, limited to that user’s organization and permissions.
Prerequisites
Install the package
The server runs via
uvx (no install) or after pipx install chattermate-sdk. See the
CLI installation guide.Configuration
Add the server to your MCP client’s configuration, supplying your personal access token viaCHATTERMATE_TOKEN. The server targets the hosted API (https://api.chattermate.chat) by
default, so no API URL is needed. Running chattermate token create prints this exact snippet
for you.
pipx, you can use the chattermate-mcp command directly instead of
uvx:
Targeting a local or self-hosted backend? Add
"CHATTERMATE_API_URL": "http://localhost:8000"
to the env block.Available tools
The server exposes the following tools. Read-only tools are safe to run freely; mutating tools create or change configuration.- Read-only
- Mutating
| Tool | Description |
|---|---|
whoami | Return the authenticated user (id, email, organization, role) |
list_agents | List all agents in the organization |
get_agent | Get a single agent by id |
get_workflow | Get the workflow attached to an agent |
get_workflow_nodes | Get all nodes and connections for a workflow |
list_knowledge | List knowledge sources linked to an agent |
get_ingestion_status | Check the status of a knowledge ingestion job |
Example prompts
Once connected, you can ask your AI agent things like:- “List my ChatterMate agents and tell me which ones have no workflow.”
- “Create a customer_support agent named ‘Billing Bot’ with instructions to handle refunds and escalate disputes to a human.”
- “Add https://docs.acme.com to the Billing Bot’s knowledge base and tell me when ingestion finishes.”
- “Create an ‘Onboarding’ workflow for agent <id> and publish it.”
Security
- Scope risk by creating a dedicated token per agent/integration and setting an expiry with
--expires-in-days. - Revoke a token at any time with
chattermate token revoke <id>(or from the API); the server stops working immediately. - The server never stores your token — it reads it from the environment on each run.
Next steps
CLI
Manage tokens and resources from your terminal.
MCP Tools
The reverse direction — give your ChatterMate agents external tools.