Skip to main content

Piing Data MCP Connector

Overview​

The Piing Data MCP Connector lets you query your Piing store data in natural language from any Model Context Protocol (MCP) client — such as Claude Desktop, Claude Code, or ChatGPT. Ask questions like "what were my sales last 30 days?" or "rank my stores by revenue this month" and the connector returns structured results scoped to your account.

The connector is read-only. It can report on sales, traffic, products, store performance and task completion — it cannot create, update or delete anything in Piing.

Endpoint: https://agent.piing.ai/mcp

Transport: Streamable HTTP (MCP)


Getting Access​

There are two ways to connect, and they give you exactly the same data. Pick the one your MCP client supports.

Sign in with PiingAccess token
How you authenticateYou sign in and approve, onceYou paste a key into a header
Anything to store?NoYes — treat it like a password
Who sets it upYouYour account manager issues the key
Best forClients with a built-in sign-in step, such as Claude.aiClients configured by file, such as Claude Code, Claude Desktop and ChatGPT

Prefer signing in where your client offers it. There is no key to copy, lose, or rotate, and access follows your Piing account automatically.

Signing in with Piing​

Nothing to request in advance. Add the connector, click Connect, and you are sent to Piing to sign in and approve.

The approval screen asks for one permission: to read which organization you belong to. That is all the connector needs. It does not widen what you can see — your existing store permissions still apply to every result, exactly as they do when you sign into Piing.

Getting an access token​

See your account manager for an access token.

Tokens are created and managed by Piing administrators — they are not self-service. When you request one, your account manager will generate a token tied to your user account and send it to you securely. The token is shown only once, so store it somewhere safe (a password manager is ideal). If a token is ever lost or compromised, your account manager can revoke it and issue a new one.


Scope​

Your Piing account determines exactly what the connector can see, whichever way you connected. Scope is enforced on every request:

DimensionScope
Access typeRead-only. Queries and reports only — no writes, no task actions.
OrganizationA single organization. The connection is bound to one Piing org and cannot reach data in any other org.
UserThe connection acts as you. It is tied to your specific Piing user account.
StoresOnly the stores you are permitted to see. The connector resolves your store permissions on every request and limits all results to that set.

In practice this means:

  • A user with organization-wide access sees all of that organization's stores.
  • A user who only manages one or two stores sees only those stores — the same data they'd see when signed into Piing.
  • A connection can never return data outside your permitted stores, and never from another organization.

To query multiple organizations, add one connection per organization (see below).


Connecting​

Claude.ai — sign in with Piing​

  1. Open Settings → Connectors → Add custom connector.
  2. Name: Piing Data
  3. URL: https://agent.piing.ai/mcp
  4. Leave the authentication fields empty. Do not add an Authorization header — that switches the connector to the access-token method and skips the sign-in step.
  5. Save, then click Connect.
  6. Sign in with your Piing account and approve the one permission it asks for.

The connector is ready as soon as you approve. Claude remembers the approval, so you only do this once per client.

If you belong to more than one organization​

The connector reads whichever organization is active on your Piing account at the moment you approve. Before you connect, sign into Piing and switch to the organization you want to query.

If no organization is active when you approve, the connection is refused rather than guessing — picking one for you could show you the wrong organization's numbers. Switch to the organization you want in Piing, then remove and re-add the connector.

To query a second organization, switch to it in Piing and add the connector again under a different name.

Claude Code, Claude Desktop, ChatGPT — access token​

Add the connector to your MCP client as an HTTP server, passing your access token as a bearer header.

Configuration file​

Add an entry to your MCP configuration:

{
"mcpServers": {
"piing-data": {
"type": "http",
"url": "https://agent.piing.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
}
}
}

Replace YOUR_ACCESS_TOKEN with the token from your account manager. After saving, reconnect or restart your MCP client so it picks up the new server.

Claude.ai / Claude Desktop (connector settings)​

If your client offers a settings UI rather than a config file:

  1. Open Settings → Connectors → Add custom connector.
  2. Name: Piing Data
  3. URL: https://agent.piing.ai/mcp
  4. Under headers/authentication, add Authorization = Bearer YOUR_ACCESS_TOKEN.
  5. Save and enable the connector. The client will list the available tools.

ChatGPT (custom connector / MCP)​

  1. In the connector settings, add a custom MCP server.
  2. URL: https://agent.piing.ai/mcp
  3. Add the header Authorization: Bearer YOUR_ACCESS_TOKEN.
  4. Save; the get_* and query_dataset tools become available.

Connecting to multiple organizations​

Use one named server per organization, each with its own token:

{
"mcpServers": {
"piing-acme": {
"type": "http",
"url": "https://agent.piing.ai/mcp",
"headers": { "Authorization": "Bearer ACME_ACCESS_TOKEN" }
},
"piing-globex": {
"type": "http",
"url": "https://agent.piing.ai/mcp",
"headers": { "Authorization": "Bearer GLOBEX_ACCESS_TOKEN" }
}
}
}

Your client will namespace each connection's tools by server name, so you can query both organizations side by side in the same session.

Verifying the connection​

Once connected, ask your assistant to run the connector's ping tool, or simply ask a data question like "what were my total sales in the last 30 days?". A successful reply confirms the token, scope and connection are working.


Available Tools​

All tools accept a natural-language query describing what you want, plus an optional explicit dateRange. Results are always limited to your permitted stores.

ToolPurpose
get_sales_summaryRevenue, transaction count, average basket and conversion over a period.
get_traffic_summaryVisitor traffic, dwell time and time-of-day breakdown.
get_product_performancePerformance by product / category.
get_performance_rankingsTop / bottom N stores, regions, salespeople or assignees.
get_store_comparisonCompare metrics across stores.
get_store_performanceDetailed performance for a single store.
get_task_summaryTask counts by status (completed, in progress, not started, overdue) over a period.
get_task_completion_summaryTask completion rate, on-time rate and overdue counts over a period.
get_task_details_by_datePer-task detail — due date, overdue flag, store and assignment counts — for drilling into specific tasks.
get_employee_productivityTask productivity by assignee — throughput, completion rate and productivity score.
query_datasetFlexible row-level query (counts, filters, aggregations) when a pre-built summary isn't enough.
pingHealth check — confirms the connector is reachable.

You normally won't call these by name; just ask your assistant a question and it will choose the right tool. For query_dataset, your assistant needs to know the dataset name and its fields — your account manager can share the available datasets.


Troubleshooting​

SymptomCauseFix
404 from /mcpConnector not enabled for your account.Ask your account manager to enable it.
Sign-in loops, or the connector never finishes connectingAn Authorization header is set, which skips the sign-in step.Remove the header and reconnect.
Sign-in succeeds, but the connector is still refusedNo organization was active on your Piing account when you approved, and you belong to more than one.Sign into Piing, switch to the organization you want, then remove and re-add the connector.
401 UnauthorizedMissing, wrong or revoked token.Check the Authorization header; ask your account manager to re-issue.
"No permitted stores for this session."Your account has no stores in scope.Confirm your store permissions with your account manager.
A metric comes back empty / nullData not yet synced for that store or period.The metric is unavailable for that window — it does not mean the store has no data.

Example​

You: Rank my stores by revenue this month.

Assistant: (calls get_performance_rankings)

  1. Carindale (Mega) — $90,285
  2. Belconnen Mega — $89,853
  3. Harbourtown QLD — $85,734 …

Security​

  • Read-only. Neither method can change any data in Piing.
  • Per-user. Both methods act as a specific user, so access always reflects that user's current store permissions — including any change made after you connected.
  • Revocable. Ask your account manager to revoke either a token or a signed-in connection. Revocation takes effect immediately.
  • Treat an access token like a password. Anyone holding it can read your permitted data. Don't share it, commit it to source control, or paste it into untrusted tools. This is the main reason to sign in instead where you can — there is no key to leak.

Support​

For help with the MCP connector, contact your Piing account manager or email support@piing.ai with:

  • Your organization name
  • The MCP client you're using (e.g. Claude Desktop)
  • Whether you signed in with Piing or used an access token
  • A description of the issue and any error message