跳到正文
FunCoding

Automata

官方 MCP Registry 已收录

Scoped, revocable access to your WhatsApp, Telegram, IMAP email and PostgreSQL for AI agents.

Star
21
版本
v1.7.0
许可证
MIT
最近提交
2026年12月1日

Automata

Website · Sign up · Documentation · Contact

Deploy on Railway

Automata — PostgreSQL, WhatsApp, Telegram & Email MCP Server

Automata is a free, open-source PostgreSQL, WhatsApp, Telegram and email (IMAP) MCP server that connects Claude, ChatGPT, Cursor and other AI agents to your database, chats and mailbox. Every connector token is scoped table by table, chat by chat and folder by folder, so the AI sees only what you shared, whether you use the hosted version or self-host it.

Many MCP servers give the AI everything the account can reach. Automata issues a connector token for one connection at a time and limits it to the actions, chats, email folders or tables you choose, so the AI sees only what you shared. It is for individuals and teams who want an AI assistant to read, search and (only if allowed) reply in their messages, mail or database. It is MIT-licensed: use the hosted version or run it yourself.

Why Automata: read-only and scoped by default

  • PostgreSQL MCP server with table-by-table allowlists. Every statement's query plan is checked against the token's tables before a row is read; queries run read-only, and writes need the run-statement tool granted.
  • WhatsApp and Telegram MCP server with chat-by-chat scoping. A token can be limited to listed chats and groups; sending needs the send tool and reaches only chats in scope.
  • Read-only IMAP email access. The AI can list, search and read mail and attachments in the folders you choose. It cannot send, move, flag or delete; at most it saves drafts for you to review.
  • One token, one connection. No tool takes an account or database argument, and tokens can expire, be rotated or be revoked.

MCP tools reference · plain-text docs for AI tools: llms.txt, llms-full.txt

What you can connect

Automata is a PostgreSQL MCP server, a WhatsApp MCP server, a Telegram MCP server and an email (IMAP) MCP server in one deployment. It connects four kinds of account; each connection gets its own connector token.

ConnectorStatusWhat the AI can doHow it connectsMore
WhatsAppAvailableList chats, read and search messages (groups included), send textYour number paired by QR code as a linked device, through Evolution APIWhatsApp MCP server
TelegramAvailableList chats, read and search messages, send textYour personal account linked by QR code as an extra device (not the Bot API)Telegram MCP server
Email (IMAP)AvailableList folders, list, search and read email, fetch attachments, save drafts. Cannot send, move, flag or deleteIMAP username and app passwordEmail setup guide
PostgreSQLAvailableList and describe tables, run read-only queries, and run writes only when the write tool is grantedA connection string, ideally for a least-privilege rolePostgreSQL MCP server

Supported AI clients

The PostgreSQL MCP server, WhatsApp MCP server, Telegram MCP server and email MCP server work with Claude, ChatGPT, Cursor and any other AI client or agent that supports custom (remote) MCP connectors over streamable HTTP. These have step-by-step guides:

All clients and connection methods: https://www.getautomata.app/docs/clients.

Quick start

Use the hosted version, or self-host with Railway or Docker.

  • Hosted: sign up at mcp.getautomata.app. The MCP endpoint is https://mcp.getautomata.app/mcp.

  • Railway (one click): Deploy on Railway

  • Docker (single container):

    docker run -d --name automata --restart unless-stopped --stop-timeout 30 \
      -p 3000:3000 -v automata_data:/data \
      -e NUXT_PUBLIC_APP_URL=https://automata.example.com \
      ghcr.io/ju-li/automata-mcp-aio:1
    

Then create a connection, mint a connector token on its dashboard, and add the connector URL to your AI client. Full steps: https://www.getautomata.app/docs/getting-started.

How permissions work

Every connector token is bound to exactly one connection and can do only what it was granted.

  • One token, one connection. No tool takes an account or database argument, so the AI cannot address another number, mailbox or database.
  • Actions. A token gets all tools or a chosen few. Tools outside its scope are not registered for that request, so calling one fails. New PostgreSQL and email tokens start read-only.
  • Chats, folders and tables. A token can be limited to listed WhatsApp or Telegram chats, email folders, or database tables. Anything outside is refused by name. Searches, and the Telegram, email-folder and table listings, exclude it in the query itself; the WhatsApp chat list drops out-of-scope chats from each page it reads.
  • Database checks. Read queries run one statement at a time in a read-only transaction. Every statement's query plan is checked against the table allowlist before a row is read. The real security boundary is the database role in the connection string, so use a least-privilege role.
  • What the AI cannot do. It cannot send without the send tool, write to a database without run-statement, or send email at all (it can only save drafts). It cannot widen its own scope.
  • Token handling. Tokens are shown once and stored only as a SHA-256 hash. They can expire, be rotated or be revoked. Clients send them as Authorization: Bearer <token>, or in the URL path (/mcp/<token>) for clients that cannot set headers.

Details: https://www.getautomata.app/docs/permissions.

PostgreSQL MCP server with per-table permissions

Automata's PostgreSQL connector is a remote MCP server for Claude, ChatGPT, Cursor and other clients that support streamable HTTP, hosted at https://mcp.getautomata.app/mcp or self-hosted on your own domain.

  • Table allowlists. A token can be limited to listed tables. Every statement's query plan is checked against that list before a row is read, and list-tables shows only tables in scope.
  • Read-only by default. New PostgreSQL tokens start read-only. Queries run one statement at a time in a read-only transaction, and run-query with explain: true returns the plan without running the query.
  • Writes only when granted. run-statement takes one INSERT, UPDATE, DELETE or MERGE and rolls it back if it would exceed a row cap. A token without it cannot write.
  • The database role is the real boundary. Connect with a least-privilege role, never a superuser.
  • MIT-licensed, hosted or self-hosted.

More: PostgreSQL MCP server · best PostgreSQL MCP servers compared.

IMAP MCP server for Gmail, iCloud, Fastmail, Zoho and Yahoo

Automata's email connector is a read-only IMAP MCP server. It signs in with an IMAP username and an app password; presets fill in the server for Gmail, iCloud, Fastmail, Zoho and Yahoo, and any other IMAP server can be entered by hand.

  • Read and search, never send. The AI can list folders, list, search and read email, and fetch attachments. The connection has no SMTP credentials, so it cannot send; at most it saves a draft for you to review.
  • Folder scoping. A token can be limited to listed folders.
  • Not the Gmail API. Gmail connects over IMAP with an app password (2-Step Verification on), not through Google OAuth. Microsoft 365 and Outlook.com cannot be connected, because Microsoft requires OAuth for IMAP.
  • Works on the hosted version or a self-hosted deployment.

More: email connection docs · connect Claude to email.

MCP tools

Automata has 26 MCP tools; a connection only exposes the tools for its kind. Full reference: https://www.getautomata.app/docs/reference/mcp-tools.

ConnectorToolWhat it does
WhatsAppget-connection-statusWhether the account is paired and connected
list-chatsChats in scope, most recently active first
read-messagesOne chat's messages, newest first, paged, with optional date range
search-messagesMessages containing every word of a query
send-text-messageSend a text message (write)
send-whatsapp-imageSend a JPEG or PNG image with an optional caption (write)
download-whatsapp-mediaThe photo, video, voice note or file a message carries (opt-in)
Telegramget-telegram-statusWhether the account is linked and online, and sync progress
list-telegram-chatsSynced chats in scope: private chats, groups, supergroups, channels
read-telegram-messagesOne chat's messages, newest first, paged
search-telegram-messagesMessages and captions containing every word of a query
send-telegram-messageSend plain text to a chat, @username or phone number (write)
send-telegram-imageSend a JPEG or PNG photo with an optional caption (write)
download-telegram-mediaThe photo, video, voice message or file a message carries (opt-in)
Emailget-mailbox-statusWhich mailbox, whether sync works, when it last ran
list-mail-foldersFolders in scope with synced and unread counts
list-emailsEmail headers, newest first, with filters
search-emailsSearch by sender, recipient, subject, date or body text
read-emailOne email's body as plain text and its attachment list
get-email-attachmentOne attachment, fetched live from the mail server
create-email-draftSave an unsent plain-text draft in Drafts (write, never sends)
PostgreSQLget-database-infoServer version, database, role, and the token's scope
list-tablesTables in scope
describe-tableColumns, keys, constraints, indexes and comments
run-queryOne read-only query, paged; explain: true returns the plan instead
run-statementOne INSERT / UPDATE / DELETE / MERGE, rolled back if it exceeds a row cap (write)

FAQ

What is Automata? Automata is a free, open-source MCP server that lets AI clients such as Claude and ChatGPT use your WhatsApp, Telegram, email and PostgreSQL, limited to the chats, folders and tables you grant each connector token.

Is Automata free? Yes. The code is MIT-licensed and free to self-host. The hosted version has a free plan with one connection, one connector token and one user; Pro has unlimited connections and tokens and starts with a 7-day trial.

Does it use the official WhatsApp Business API? No. Automata pairs your own WhatsApp number as a linked device through Evolution API (the Baileys integration), the way WhatsApp Web links. Pairing a real number carries a risk of restriction or bans, so use a spare number for testing.

Can the AI read WhatsApp groups? Yes. Group chats are listed and readable like one-to-one chats, and a token can be limited to specific groups or chats.

Can the AI send messages? Yes, but only if the token is granted the send tool, and only to the chats in its scope. Email is different: the AI can save drafts for you to review, but it cannot send email.

Is it safe to give Claude database access? Yes, when you use a least-privilege database role. Queries are read-only by default, run one statement at a time, and are checked against the token's table allowlist through the query plan; writes need the run-statement tool granted explicitly. The database role is the real boundary, so do not connect a superuser. See https://www.getautomata.app/docs/connections/postgresql.

Should I self-host or use the hosted version? Use the hosted version to start in minutes without running servers. Self-host if you want your messages and credentials on your own infrastructure, want full WhatsApp history import without a paid plan, or want to use your own Evolution API server or Telegram bridge, which only self-hosted deployments allow.

Screenshots

Claude searching a WhatsApp team chat and a Telegram client group to recap a project and its action items
Claude recaps a client project from a WhatsApp group and a Telegram group, in one answer.

Claude comparing quarterly sales by product from a PostgreSQL connection, and the connector refusing a query on the payroll table it was not scoped to
Tables you didn't share, like payroll, stay out of reach.

The Automata connections page with WhatsApp, Telegram and PostgreSQL connections
Every connection gets its own connector.

An Automata connector in Claude's connector settings, with its tools
Added to Claude as a custom connector, with per-tool permissions.

Other features

  • History, not just new messages. Recent WhatsApp history is imported when a number is paired, full history on request; Telegram chats are synced and backfilled; email headers are synced while bodies and attachments are fetched live and never stored.
  • Complete-or-labelled answers. Every page says when there is more; reactions and WhatsApp control records are filtered and counted; duplicate copies of a message are collapsed; @-mentions are resolved to names.
  • Teams. Organizations with admins and members, email invitations, and connections assigned to the people who use them.
  • Visibility. Each token lists the MCP clients that connected with it, and optional telemetry keeps every tool call for 30 days with the one-line reason the AI gave for it.
  • Two-factor sign-in with authenticator apps, passkeys and security keys.
  • Disconnect alerts by email when a WhatsApp or Telegram connection drops, and again when it recovers.
  • Bring your own backend (self-hosted only): point a connection at your own Evolution API server or Telegram bridge.

Hosted plans

Sign up at mcp.getautomata.app. Free covers one connection, one connector token and one user, with telemetry always on, only recent WhatsApp history imported and Telegram history back 90 days. Pro is $19/month after a 7-day trial, with unlimited connections and tokens and five users included ($10/user after).

Self-hosting

Automata is a Nuxt application. A self-hosted deployment runs the web app and Postgres; Evolution API with Redis is needed only for WhatsApp, and the bundled Telegram bridge only for Telegram.

Railway

  1. Deploy the template.
  2. Open the web service's domain and sign up. The first account is the admin.
  3. Optional: set TELEGRAM_API_ID / TELEGRAM_API_HASH on the bridge for Telegram, and the NUXT_SMTP_* variables on the web service for email.

Every service and variable: Deploying to Railway.

Single container

The docker run command in Quick start runs Postgres, Redis, Evolution API, the web app and the Telegram bridge in one container. Secrets are generated into the volume on first boot. Back up the volume; see Single container.

Docker Compose

git clone https://github.com/ju-li/automata-mcp.git && cd automata-mcp
cp .env.selfhost.example .env
for k in POSTGRES_PASSWORD WEBHOOK_SECRET EVOLUTION_API_KEY TELEGRAM_BRIDGE_ADMIN_KEY TELEGRAM_SESSION_ENCRYPTION_KEY; do
  echo "$k=$(openssl rand -hex 32)"; done >> .env

docker compose up -d                                         # database and email connections
docker compose --profile whatsapp up -d                      # + WhatsApp
docker compose --profile whatsapp --profile telegram up -d   # + Telegram

Open http://localhost:3000 and sign up. Set NUXT_PUBLIC_APP_URL in .env to the public https:// address before your AI client connects; connector URLs are built from it. See Self-hosting.

Warning

Pairing binds a real WhatsApp number, and numbers that pair and unpair repeatedly can be banned. Use a spare SIM. Never run docker compose down -v or delete the single container's volume: either deletes every paired session.

Connecting a client

  1. Create a connection and pair it, link it, or enter its credentials.

  2. On its dashboard, create a connector token and choose what it may reach.

  3. Add the connector URL to your AI client:

    • Claude: open Settings → Customize → Connectors → Add → Add custom connector, paste the connection's URL (/mcp/<connection id>, shown in the token dialog — one URL per connection, since Claude won't add the same URL twice), choose No sign-in, and under Request headers add Authorization with the value Bearer <token>. Request headers is still rolling out; without it, paste the connector URL (/mcp/<token>) instead. In a Team or Enterprise organization every member uses that one token. For Claude Code: claude mcp add --transport http <name> <app-url>/mcp/<connection id> --header "Authorization: Bearer <token>".

    • ChatGPT: turn on developer mode (Settings → Apps & Connectors → Advanced settings), create a custom connector, paste the connector URL (the /mcp/<token> form, since ChatGPT cannot set a header) and choose no authentication. Guide: ChatGPT.

    • Cursor: add the server to ~/.cursor/mcp.json (or .cursor/mcp.json in a project) and set AUTOMATA_TOKEN in your environment:

      {
        "mcpServers": {
          "automata": {
            "url": "https://mcp.getautomata.app/mcp",
            "headers": {
              "Authorization": "Bearer ${env:AUTOMATA_TOKEN}"
            }
          }
        }
      }
      

      Self-hosted: replace the URL with your own https://<your-domain>/mcp.

    Other clients: https://www.getautomata.app/docs/clients.

Development

The repository is a pnpm workspace: apps/web (the Nuxt app and MCP server), apps/telegram-bridge (the Telegram service) and apps/cloud (hosted billing only). One .env at the repo root serves everything; .env.example documents every variable.

pnpm install
pnpm services:up            # Postgres (add :whatsapp or :telegram for those stacks)
pnpm dev                    # web app on http://localhost:3000
pnpm typecheck              # also: pnpm bridge:typecheck, pnpm cloud:typecheck
pnpm test:emails            # account-email snapshot tests

Local setup, networking and the Linux firewall rule are in Development. Configuration reference: https://www.getautomata.app/docs/self-hosting/configuration.

Documentation

Contributing

Issues and pull requests are welcome at https://github.com/ju-li/automata-mcp. Before opening a pull request, run pnpm typecheck, pnpm bridge:typecheck, pnpm cloud:typecheck, pnpm test:emails and pnpm listings:check; these are the repository's automated checks.

License

MIT

ju-li/automata-mcp MCP server

同类 MCP Server

精选

activepieces

开源的 Zapier 替代品,每个集成都能作为 MCP Server 使用。

ACactivepieces/activepieces26k近 7 天新增 116 个 star

精选

n8n-mcp

提供 n8n 近 3000 个节点的文档,让智能体替你搭建工作流。

CZczlonkowski/n8n-mcp23k近 7 天新增 32 个 star

mobilerun

Control real Android and iOS devices with LLM agents — tap, swipe, type, automate flows.

DRdroidrun/mobilerun10k近 7 天新增 62 个 star

mcp-agent

Build effective agents using Model Context Protocol and simple workflow patterns

LAlastmile-ai/mcp-agent8.6k近 7 天新增 3 个 star

spec-workflow-mcp

A Model Context Protocol (MCP) server that provides structured spec-driven development workflow tools for AI-assisted software development, featuring a real-time web dashboard and VSCode extension for monitoring and managing your project's progress directly in your development environment.

PIPimzino/spec-workflow-mcp4.3k近 7 天新增 2 个 star

n8n-nodes-mcp

n8n custom node for MCP

NEnerding-io/n8n-nodes-mcp3k近 7 天新增 1 个 star