Spark
MCP Docs · Technical

Connect your AI agentto live Spark data

Spark's hosted Model Context Protocol connector gives Muse and other compatible agents access to the business context, tools, and records available to the connected Spark identity.

Looking for AI inside Spark Web, the Spark app, or your private business WhatsApp group? Explore Spark AI.

01

Generate an API token

In Spark Web Settings, generate an Admin token for company-wide access or issue Manager Agent Access for one Restaurant or Store Manager.

02

Add the hosted connector

Use the hosted MCP endpoint in Muse or another Streamable HTTP MCP client and choose Bearer/API-key authentication.

03

Ask about your operation

The connector discovers your company type, role, and enabled modules, then presents the tools relevant to that workspace.

Connect

One endpoint. Your company token.

Configure the endpoint as a hosted Streamable HTTP MCP server. Send the API token exactly as a Bearer token. Do not send a company or store ID; Spark resolves company, role, and manager assignments from the token.

Endpointhttps://mcp.1xaispark.com
TransportMCP Streamable HTTP
AuthenticationBearer API key
Authorization: Bearer spark_admin_or_mgr_token_here
{
  "mcpServers": {
    "spark": {
      "url": "https://mcp.1xaispark.com",
      "headers": {
        "Authorization": "Bearer spark_admin_or_mgr_token_here"
      }
    }
  }
}

Treat the API token like a password. Do not place it in source control, screenshots, support messages, or client-side code. Spark shows the plaintext token only once.

Security model

The token decides what the connector can see

Identity scoped

Every token resolves its company, role, and—when issued for a manager—the manager’s current assigned restaurants or stores.

No company override

External agents cannot send a company ID or switch the token into another workspace.

Role-aware tools

Available tools follow the token's company, role, enabled modules, and current manager assignments.

Revocable

Rotate or revoke the token from Spark Settings. Revoked tokens are rejected at the connector boundary.

What you can ask

Live answers from enabled Spark modules

The connector includes tools for dashboards, sales, LPG orders, payments, customers, stock, trips, vehicles, attendance, check-ins, payroll, expenses, alerts, and other enabled modules.

  • “What were today’s sales and collections?”
  • “Which LPG orders are still pending delivery?”
  • “Which customers have overdue balances?”
  • “Summarize today’s staff attendance and check-ins.”
  • “Show current stock levels and low-stock alerts.”

Requirements and limits

What to know before connecting

  • An active Spark company account and web administrator login are required.
  • Generate your own Admin token or issue manager-bound tokens from Spark Web → Settings.
  • Admin tokens use company-wide tools. Manager tokens receive tools for their currently assigned restaurants or stores.
  • Store assignment, employment, role, expiry, and revocation changes take effect on the next agent request.
  • Each company token is limited to 120 MCP requests per rolling minute; clients should narrow repeated or broad queries.
  • List tools may return a bounded result with a truncation indicator; narrow broad questions by date, store, status, or staff member.
  • Business dates use the company timezone configured in Spark.

Rotate or revoke access

In Settings → API Token, choose Rotate Token to replace the secret or Revoke Token to disconnect agents. Update the agent configuration after rotation.

Need connector support?

Contact onexai.inc@gmail.com. Include the MCP client name and error message, but never include your API token.

Also see the Privacy Policy and Terms of Service.

Run your business with Spark

One web dashboard and Android app for sales, stock, payments, people, and field operations.

Or message us on WhatsApp

Free to start · No payment required · Web + Android