Use Sparkle from your AI agent (MCP)
Connect Claude, Claude Code or another MCP client to Sparkle's MCP server by signing in, and let the agent run conversations, read moments and write custom moments.
Sparkle runs an MCP server at https://api.sparkle.ai/mcp. Add it
to an agent and the agent calls Sparkle itself: it can list your conversations, read their moments,
send a transcript, write a custom moment and test it on a real call. You ask in plain words
("summarise today's decisions") and the agent picks the tools.
The server is the public API in another shape: every tool does what the matching API operation does, with the same permissions. A client connects in one of two ways:
- Sign in. The client opens Sparkle in your browser, you pick an organization and an environment, and the client acts with your role in that organization. This is the setup below.
- API key. The client sends a key in a header. Use it for CI, or a client that can't sign in; see Use an API key instead.
The environment decides what the agent creates: test conversations are never billed, live ones are. As on the API, a connection reads all of the organization's conversations, live ones included.
Set it up
In Claude on the web or the desktop app:
- Open Customize → Connectors (Settings → Connectors on some plans), then choose + Add → Add custom connector.
- Enter a name, such as
Sparkle, and the URLhttps://api.sparkle.ai/mcp. - Choose Connect. Claude opens Sparkle's sign-in; sign in and pick the organization and environment on the consent screen.
Custom connectors are available on the Free (one connector), Pro, Max, Team and Enterprise plans. On Team and Enterprise, an Owner adds the connector under Organization settings → Connectors. See Anthropic's custom connector guide.
What you approve
The consent screen shows the app's name, whether Sparkle has verified it, and where it sends you back to: Claude, or for Claude Code an app on your own computer. Approve only a sign-in you started yourself. Then you choose:
- The organization the app works in. It acts with your role there, and if you lose that role the app loses access with it.
- What it can do. Read (
sparkle:read) lists conversations, moments, custom moments and usage. Read & write (sparkle:write, which includes read) also creates and ends conversations, sends turns, imports transcripts, and creates and tests custom moments. - The environment. Test is the default and never billed. Live is billed.
What you can approve depends on your role in the organization:
| Role | Read | Read & write | Live |
|---|---|---|---|
| Viewer | Yes | No | No |
| Editor | Yes | Yes | No |
| Owner | Yes | Yes | Yes |
A company owner counts as an owner in every organization.
Access tokens last an hour and the client refreshes them on its own. Refresh tokens rotate on each use and last 30 days. See and disconnect your apps in Settings → Connected apps in the dashboard; a disconnected app loses access at once.
Use an API key instead
For CI, or a client that can't sign in, send an API key from Settings → API keys. Start with a
test key (spk_test_…); see Security below. A key header turns sign-in off for that
server.
Add the server with your key as a bearer token:
claude mcp add --transport http sparkle https://api.sparkle.ai/mcp \
--header "Authorization: Bearer spk_test_…"To share the server with your team without sharing a key, commit a .mcp.json that reads the key
from each person's environment:
{
"mcpServers": {
"sparkle": {
"type": "http",
"url": "https://api.sparkle.ai/mcp",
"headers": {
"Authorization": "Bearer ${SPARKLE_API_KEY}"
}
}
}
}Run /mcp in a session to check that sparkle is connected.
Any other client that speaks Streamable HTTP works the same way: the URL above, and the key in
Authorization: Bearer spk_… or X-API-Key: spk_….
Other MCP clients
A client that implements MCP authorization finds the sign-in on its own from the server URL. For reference:
| What | Where |
|---|---|
| Protected resource metadata | https://api.sparkle.ai/.well-known/oauth-protected-resource/mcp |
| Authorization server metadata | https://api.sparkle.ai/.well-known/oauth-authorization-server |
| Resource (RFC 8707) | https://api.sparkle.ai/mcp |
| Scopes | sparkle:read, sparkle:write (write includes read) |
Clients are public clients using PKCE with S256. A client identifies itself with a Client ID
Metadata Document, or registers through Dynamic Client Registration at /register.
Tools
| Tool | What it does |
|---|---|
list_conversations | Lists conversations, newest first, with their moments counted by kind. Filters by status. |
get_conversation | One conversation: status, environment, times and moments by kind. |
list_moments | A conversation's moments: kind, title, what was said, who, when. Filters by kind and minimum confidence. |
create_conversation | Starts a conversation, optionally with its own webhook URL. |
send_turns | Sends up to 500 turns to a live conversation. |
end_conversation | Ends a conversation, which lets every pending moment go. |
import_transcript | Imports a finished transcript, as WebVTT, SRT, Speaker: line text, JSON or turns. |
list_custom_moments | Lists the organization's custom moments. |
create_custom_moment | Defines a custom moment as a draft: when it fires, when it doesn't, examples. |
evaluate_custom_moment | Runs a custom moment over a stored conversation or a pasted transcript and shows where it fired. |
list_custom_moment_fires | Lists the moments a custom moment detected across conversations. |
get_usage | The plan, its limits and this month's usage. |
The read tools are marked read-only and the writes are marked as writes, so your client can ask
before each write. end_conversation is marked destructive: an ended conversation takes no more
turns. The server also offers this docs site's quickstart as the resource
sparkle://docs/quickstart.
Results are kept small for the model's context: lists stop at 50 items and say when there are
more, and long text is cut and marked [truncated]. Ask for a narrower filter, or use the
API for bulk reads.
Things to ask
Summarise today's decisions.
The agent lists today's conversations, reads the decision moments of each, and writes the summary.
Write a custom moment for pricing objections and test it on my last call.
The agent drafts when, not_when and examples, creates pricing_objection as a draft, finds your
latest conversation and evaluates the draft on it. It shows where the moment fired and the turns it
nearly fired on, and suggests changes to the wording. The draft detects nothing live until you make
it live, from the dashboard or the API.
Import this Zoom transcript and tell me who committed to what.
The agent sends the file with import_transcript, waits for the conversation to end, and reads its
request.do and work_item moments.
Security
- Start with test. Whether you sign in or use a key, the conversations a test connection creates are test ones, never billed, and their events reach only test webhooks. Move to live once you trust what the agent does. A test connection still reads the organization's live conversations, so connect an agent that must not see them to an organization that has none.
- Grant only what the agent needs. Approve read when the agent only has to read. With a key,
its role and scopes bound every tool: a
viewerkey can read but every write is refused, and a key scoped toconversation:*can't touch custom moments. - Approve only a sign-in you started. Check the app's name and where it sends you back to on the consent screen, and deny anything you don't recognise.
- Keep keys out of shared files. Read a key from an environment variable, as the
.mcp.jsonand Cursor examples above do. Anyone holding the key can do what it can. - Each message counts as an API request. Custom moment evaluations share the organization's limit of 10 a minute with the API.
- No tool returns a secret. Results land in the agent's context, transcripts and logs, so
create_conversationandimport_transcriptwith awebhook_urlcreate the webhook but never return its signing secret. To read it, rotate it in the dashboard or withPOST /webhooks/{id}/rotate-secret.
Disconnect an app in Settings → Connected apps, or revoke a key in Settings → API keys, and the agent loses access at its next message.