OneSignal MCP server for AI agents

Live

API KEY

CUSTOMER MESSAGING

Communication

OneSignal gives your agent customer messaging in your OneSignal app: send push, email, and SMS messages, manage users, subscriptions, segments, templates, and journeys, and read message, outcome, and email reputation data.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
OneSignal
agent · Acme Q3
Run
Send a push to the Trial Users segment about the new dashboard.
S
onesignal_push_send
740ms
Customer messaging agent
Sent the push notification to the Trial Users segment and returned the message ID.
Sources: OneSignal segment, Trial Users
onesignal
1 message
18:29
Message Claude...

Tools your customer messaging agent reaches for on OneSignal, scoped per user.

CALL ANY TOOL
51 tools for customer messaging in OneSignal: send push, email, and SMS, manage users, subscriptions, segments, templates, and journeys, and read message and outcome data.
onesignal_custom_events_create
Create custom events
Create Custom Events. The Custom Events API allows you to record user events. Returns an object with errors.
Parameters
Name
Type
Required
Description
app_id
string
Required
The OneSignal App ID (a UUID) from Settings > Keys & IDs in the OneSignal dashboard.
events
array
Required
Array of event objects to be recorded. Maximum size for each event is `2024` bytes. Maximum size of request is `1` MB. Example: [{"name": "Scalekit test"}]
onesignal_email_provider_metrics_get
Get email provider metrics
onesignal_email_reputation_get
Get email reputation
onesignal_email_send
Send email
onesignal_journey_create
Create journey
onesignal_journey_delete
Delete journey
onesignal_journey_duplicate
Duplicate journey
onesignal_journey_node_update
Update journey node
onesignal_journey_schema_get
Get journey schema
onesignal_journey_update
Update journey
onesignal_journeys_list
List journeys
onesignal_live_activity_start
Start live activity
onesignal_message_cancel
Cancel message
onesignal_message_events_export
Export message events
onesignal_message_get
Get message
onesignal_message_recipients_estimate
Message recipients estimate
onesignal_push_send
Send push
onesignal_segment_delete
Delete segment
onesignal_segment_get
Get segment
onesignal_segment_update
Update segment
onesignal_segments_list
List segments
onesignal_subscription_alias_upsert
Upsert subscription alias
onesignal_subscription_create
Create subscription
onesignal_subscription_update
Update subscription
onesignal_subscriptions_export
Export subscriptions
onesignal_template_create
Create template
onesignal_template_delete
Delete template
onesignal_template_get
Get template
onesignal_template_update
Update template
onesignal_user_alias_delete
Delete user alias

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// OneSignal tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["onesignal"], toolNames: [
    "onesignal_push_send",
    "onesignal_segments_list",
    "onesignal_message_recipients_estimate"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my segments, estimate how many people the Trial Users message reaches, and send the push" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["onesignal"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my segments, estimate how many people the Trial Users message reaches, and send the push" }],
  tools,
});

// Execute the tool call with the user's vaulted OneSignal API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["onesignal"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my segments, estimate how many people the Trial Users message reaches, and send the push" }],
  tools,
});

// Tool call runs with the user's vaulted OneSignal API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["onesignal"] }, pageSize: 100,
});

const agent = new Agent({
  name: "customer_messaging_agent",
  model: "gemini-2.5-pro",
  instruction: "OneSignal tools scoped to this user",
  tools,
});

await agent.run("List my segments, estimate how many people the Trial Users message reaches, and send the push");
Try these prompts
Copy any prompt into your agent. Each maps directly to a OneSignal tool. Click to copy, paste into your agent, done.
Send messages
Copy the prompt
Copied
Send a push to the Trial Users segment about the new dashboard.
Copy the prompt
Copied
Send an email using my welcome template.
Copy the prompt
Copied
Send an SMS to this subscriber.
Segments, users, and templates
Copy the prompt
Copied
Create a segment of users who opened the app this week.
Copy the prompt
Copied
Show the identity for this OneSignal user.
Copy the prompt
Copied
List my message templates.
Journeys and reporting
Copy the prompt
Copied
List my journeys and show stats for the onboarding one.
Copy the prompt
Copied
Show my email reputation.
Copy the prompt
Copied
Show the outcomes for my last campaign.
SEE HOW AUTH WORKS
Each user connects their own OneSignal API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
OneSignal
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
OneSignal
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
OneSignal
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
OneSignal
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Test other agents
See the same per-user auth pattern across other communication connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared OneSignal API key looks fine in a demo. In production every message send looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
OneSignal today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access OneSignal as the user or through a shared key?
As the user. Each user connects their own OneSignal API key once, and Scalekit sends it with every call. Audit logs attribute every message and audience change to that user, not a shared service account.
Where is the OneSignal API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in OneSignal?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without onesignal_push_send, onesignal_email_send, onesignal_sms_send, or onesignal_user_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes OneSignal access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent estimate who a message will reach?
Yes. onesignal_message_recipients_estimate estimates the recipients of a message, and onesignal_segments_list and onesignal_segment_get show the segments you can target. onesignal_message_cancel can cancel a message that is scheduled.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""onesignal"": {
""url"": ""https://mcp.scalekit.com/onesignal"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.onesignal]
url = ""https://mcp.scalekit.com/onesignal""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""onesignal"": {
""url"": ""https://mcp.scalekit.com/onesignal"",
""type"": ""http""
}
}
}