Manage OneSignal messages users segments templates and analytics with a comprehensive MCP server tool
The OneSignal MCP Server is designed to provide a robust interface for integrating various AI applications (like Claude Desktop, Continue, and Cursor) with external tools and data sources through the Model Context Protocol (MCP). This server simplifies interactions with the OneSignal API by offering a set of tools tailored to common tasks such as sending notifications, email campaigns, SMS messaging, managing user devices, and working with segments and templates. By leveraging MCP's universal adapter framework, developers can seamlessly connect their AI applications to a wide range of platforms.
The OneSignal MCP Server provides several key capabilities that enhance the functionality of AI applications:
These features make the server a versatile tool that can be integrated into various AI workflows, delivering precise and efficient interactions with external systems.
The OneSignal MCP Server is built around a modular architecture that allows it to seamlessly connect AI applications with diverse tools. The core components include:
The architecture is designed to be flexible, allowing for the addition of new clients or modifications without affecting existing functionalities. The protocol implementation ensures that interactions are secure and compliant with MCP standards.
To get started with the OneSignal MCP Server, follow these steps:
# Clone the repository
git clone https://github.com/weirdbrains/onesignal-mcp.git
cd onesignal-mcp
# Install dependencies
pip install -r requirements.txt
pip install onesignal-mcp
The OneSignal MCP Server is particularly useful for scenarios where AI applications need to interact with user devices and deliver personalized notifications. Here are two real-world use cases:
In a customer service application, the server can be used to send push notifications to users based on their recent activity or preferences. For example, if a user abandons their cart on an e-commerce site, the AI application can trigger a notification reminding them of the products they left behind.
# Send a notification to a specific user
result = await send_notification(
title="Don't Forget Your Cart!",
message="You have items in your shopping cart. Click here to view.",
user_id="user-12345"
)
print(result)
For an marketing AI application, the server can help plan and execute email campaigns targeted at specific segments of users. By using OneSignal's powerful segmentation features, you can create custom lists of recipients for highly personalized emails.
# Create a new segment for high-value customers
result = await create_segment(
name="High Value Users",
filters='[{"field":"amount_spent", "relation":">", "value":"100"}]'
)
print(result)
The following AI applications are compatible with the OneSignal MCP Server:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This compatibility matrix ensures that developers can select the appropriate MCP client based on their needs.
The OneSignal MCP Server is tested and optimized for performance with various AI applications. Here’s a brief overview of its compatibility:
Application | Notifications | Segments | Templates | Devices |
---|---|---|---|---|
Claude Desktop | High | Medium | Low | Low |
Continue | High | High | High | Medium |
This matrix helps you understand the level of functionality provided by the server for different types of interactions.
The server supports advanced configuration options to tailor its behavior:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
First, clone the repository and install the dependencies. Then, configure your .env
file with appropriate credentials.
Yes, you can add multiple app configurations and switch between them as needed.
The server includes robust error handling for API calls, ensuring that issues are caught and logged appropriately.
Yes, the server comes with a test suite that covers various scenarios and edge cases to ensure reliability.
Use the switch_app
function provided by the MCP client to change the currently selected app context.
We encourage contributions from developers looking to enhance the OneSignal MCP Server. Please refer to the CONTRIBUTING.md file for detailed guidelines on submitting patches and pull requests.
For more information and resources related to Model Context Protocol, consider visiting its official website or checking out community forums where developers can share insights and best practices.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This documentation highlights the OneSignal MCP Server's capabilities, ensuring that developers can integrate it effectively into their AI applications. By leveraging its advanced features and compatibility with various clients, you can create robust and efficient workflows that enhance user engagement and satisfaction.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration