This MCP server integrates with signal-cli to enable AI agents to send and receive Signal messages. It provides a straightforward way to communicate via Signal within your automated workflows or applications.
This project requires signal-cli to be installed and configured on your system before you can use the MCP server.
Install signal-cli: Follow the official installation instructions
Register your Signal account:
signal-cli -u YOUR_PHONE_NUMBER register
Verify your account with the code received via SMS:
signal-cli -u YOUR_PHONE_NUMBER verify CODE_RECEIVED
For more detailed setup instructions, see the signal-cli documentation.
To install the Signal MCP server, use pip:
pip install -e .
# or use uv for faster installation
uv pip install -e .
Run the MCP server by executing the main.py script with your Signal phone number:
./main.py --user-id YOUR_PHONE_NUMBER [--transport {sse|stdio}]
Replace YOUR_PHONE_NUMBER
with the phone number you registered with signal-cli. You can optionally specify the transport method (sse or stdio).
The MCP server provides three main functions:
To send a message to an individual user, the AI agent would use the send_message_to_user
function with the recipient's phone number and the message content.
To send a message to a group, the AI agent would use the send_message_to_group
function with the group ID and message content.
The receive_message
function allows the AI agent to wait for incoming messages. You can specify a timeout to control how long the server should wait before returning.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.