Sinores Open
A self-hosted WhatsApp gateway that exposes messaging capabilities via MCP, allowing AI agents to send, receive, and manage WhatsApp messages through a single-command setup with SQLite storage.
README
<div align="center">
sinores-wp-mcp
Give your AI agent access to WhatsApp.
Self-hosted WhatsApp gateway with a built-in MCP server.<br> Connect a number, point your agent at one endpoint, and start building.
Quick start · MCP setup · Hosted Sinores · Contributing
</div>
sinores-wp-mcp is the open-source edition of Sinores. It turns a WhatsApp number into tools that any MCP-compatible AI agent can use. Your agent can discover connected channels, check their status, send messages, and read message history-all through a standard Model Context Protocol endpoint.
No Docker. No Postgres. No Redis. One Node.js process and one port.
Want it managed for you? Sinores Cloud is the hosted, production-ready service. This repository is the free, MIT-licensed core for developers who prefer to run everything themselves.
Why Sinores Open?
- Built for AI agents - MCP is included, not bolted on as an afterthought.
- Start in minutes - install dependencies, add one token, and scan a QR code.
- Keep control of your data - messages, credentials, and sessions stay on your machine.
- Simple by design - the dashboard, API, MCP server, database, and WhatsApp connection run together.
- Works with any MCP client - use it with your favorite agent, IDE, or custom automation.
- Open source - inspect it, extend it, and ship your own integrations under the MIT license.
What you get
| Capability | Description |
|---|---|
| WhatsApp channels | Link numbers using the familiar WhatsApp QR flow |
| Send and receive | Exchange text messages and keep a local history |
| Built-in MCP server | Give agents WhatsApp tools through POST /api/mcp |
| Web dashboard | Create channels, view connection state, scan QR codes, and test messages |
| Local persistence | Store channel data and message history in SQLite |
| Simple authentication | Protect the dashboard, REST API, and MCP endpoint with one admin token |
Quick start
Requirements
- Node.js 22 or newer
- A WhatsApp account that can link a companion device
Run locally
git clone https://github.com/karl4th/sinores-wp-mcp.git
cd sinores-wp-mcp
npm install
cp .env.example .env.local
Generate a secure admin token:
openssl rand -hex 32
Put the result in .env.local:
ADMIN_TOKEN=your-generated-token
Start Sinores Open:
npm run dev
Open http://localhost:3000, sign in with your admin token, create a channel, and scan the QR code from WhatsApp → Linked devices → Link a device.
For a production-style local run:
npm run build
npm start
Connect an AI agent
Sinores exposes a Streamable HTTP MCP endpoint at:
http://localhost:3000/api/mcp
Configure your MCP client with the endpoint and bearer token. The exact config shape depends on the client, but the connection values are:
{
"url": "http://localhost:3000/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_ADMIN_TOKEN"
}
}
Once connected, the agent receives four tools:
| Tool | What it does |
|---|---|
list_channels |
Lists connected WhatsApp channels and their status |
get_channel_status |
Returns the current state of one channel |
send_message |
Sends a text message to a phone number |
list_messages |
Reads message history, with direction and timestamp filters |
Start with list_channels to get a channelId, then pass that ID to the other tools.
How it works
flowchart LR
A["AI agent"] -->|"MCP over HTTP"| S["Sinores Open"]
U["Web dashboard"] --> S
S --> M["WhatsApp via Baileys"]
S --> D[("SQLite")]
- Next.js serves the dashboard, REST routes, and MCP endpoint.
- Baileys manages WhatsApp companion-device sessions.
- SQLite stores channels and message history in
./databy default. - The MCP SDK exposes agent tools from the same application process.
Configuration
| Variable | Required | Default | Purpose |
|---|---|---|---|
ADMIN_TOKEN |
Yes | - | Protects the dashboard, API, and MCP endpoint |
CHANNEL_LIMIT |
No | 10 |
Maximum number of WhatsApp channels |
DATA_DIR |
No | ./data |
SQLite and application data directory |
BAILEYS_AUTH_DIR |
No | ./data/baileys-auth |
WhatsApp session credentials directory |
COOKIE_SECURE |
No | unset | Set to true when serving over HTTPS |
See .env.example for a ready-to-copy configuration file.
Open source or hosted?
| Sinores Open | Sinores Cloud | |
|---|---|---|
| Best for | Developers, prototypes, personal automation | Teams and production workloads |
| Hosting | Your machine or server | Managed for you |
| Database | Local SQLite | Managed infrastructure |
| Authentication | Single admin token | Multi-tenant access controls |
| Operations | You maintain it | Sinores maintains it |
| License | MIT | Commercial service |
Security notes
- Treat
ADMIN_TOKENas a password: anyone who has it can access every connected channel. - Do not commit
.env.local, thedatadirectory, or Baileys session credentials. - Use HTTPS and set
COOKIE_SECURE=truewhen exposing an instance outside your local network. - This project uses Baileys, an unofficial WhatsApp Web API. It is not affiliated with or endorsed by WhatsApp or Meta. Review WhatsApp's terms and use it responsibly.
Contributing
Issues and pull requests are welcome. If you have an idea, found a bug, or built something interesting with Sinores, open an issue.
If Sinores Open helps you build something useful, please give the repository a star. It helps other developers discover the project and motivates us to keep improving it. ⭐
License
Sinores Open is available under the MIT License.
<div align="center">
Built for developers connecting AI agents to the real world.
</div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.