Skip to content

MCP Server ​

Connect an AI assistant such as Claude or ChatGPT to your Sesamy data, so you can ask about revenue, products, readers, and transactions in plain language.

In Plain Words ​

The Sesamy MCP server lets an AI assistant look things up in your Sesamy account for you. You set it up once. After that you ask questions the way you would ask a colleague, and the assistant fetches the answer.

The technical name is MCP, short for Model Context Protocol. You do not need to know how it works to use it.

How it works

  1. You add Sesamy to your AI assistant. You only do this once.
  2. You sign in with your usual Sesamy account.
  3. You ask a question. The assistant looks up the answer in Sesamy and replies.

What you can ask

  • "What was ACME's total revenue last month, compared with the month before?"
  • "Which campaigns drove the most subscription sales for ACME in October?"
  • "Find the reader jane.doe@acme.example and list their entitlements."
  • "Which products does ACME sell, and which are subscriptions?"
  • "Generate a transactions report for ACME for October and give me the download link."

What it does not do

  • It does not change anything. The assistant can read your data. The only thing it can create is a report, the same kind you can generate on the Reports page in the Sesamy portal.
  • It only sees publishers you are already a member of, and only the data your role allows.
  • It never sees your password.

Good to know

  • If you ask about a reader, the assistant sees that reader's name and email address, so use an AI assistant your organisation has approved for that.
  • Some assistants need an admin to switch on custom connections first. If you do not see the option, ask your workspace admin.

The Quick Start below is the fastest way in. The sections after it explain each step in detail.

Quick Start ​

For when you know your way around MCP clients.

SettingValue
URLhttps://api2.sesamy.com/mcp
TransportStreamable HTTP
AuthenticationOAuth 2.1 with PKCE, CIMD or DCR
AccessRead-only, except create_report
  1. Add the server to your client.

    • Claude: Customize > Connectors > Add > Add custom connector, then Connect.

    • ChatGPT: chatgpt.com/plugins > plus button > Add custom MCP server, with authentication set to OAuth.

    • Claude Code:

      bash
      claude mcp add --transport http sesamy https://api2.sesamy.com/mcp

      Then run /mcp and sign in.

  2. Sign in with your Sesamy account when the browser opens.

  3. Ask for list_vendors first, then pick a publisher. Every other tool takes its id as vendorId.

Use the exact URL

Enter the URL with the /mcp path and no trailing slash. Some clients compare it byte for byte with the resource the server announces during sign-in, and refuse to connect when it differs.

Any other client that supports remote MCP servers with OAuth works the same way. See Other Clients.

Server Details ​

SettingValue
URLhttps://api2.sesamy.com/mcp
TransportStreamable HTTP, JSON responses
AuthenticationOAuth 2.1 with PKCE, signing in at https://sesamy.token.sesamy.com/
RegistrationClient ID Metadata Documents (CIMD) and Dynamic Client Registration (DCR)
AccessRead-only, except create_report, which generates a report
ScopeEvery tool call acts on one publisher, which you or the assistant choose by vendorId

The server is stateless. It accepts the 2025-11-25 and 2026-07-28 revisions of the MCP specification and answers GET and DELETE requests with 405. It does not support the older HTTP+SSE transport, so if a client asks you to pick a transport, pick Streamable HTTP.

Prerequisites ​

  • A Sesamy account that is a member of at least one publisher (vendor) in the portal.
  • A role in that publisher that allows the data you want to read. See Permissions.
  • An AI client that supports remote MCP servers with OAuth.

You do not need an API key or a client secret. If you need unattended access from a script or a backend, use the Management API with OAuth 2.0 client credentials instead.

Connect Your Client ​

Every client needs the same two things: the server URL, and a browser sign-in on first use.

Claude ​

Claude on the web and Claude Desktop share one connector list, so you set the server up once.

  1. Open Customize > Connectors.
  2. Choose Add > Add custom connector.
  3. Enter the name sesamy and the URL https://api2.sesamy.com/mcp, then choose Continue.
  4. Leave the options marked Detected as they are, then choose Add.
  5. Choose Connect on the new connector and sign in with your Sesamy account.
  6. In a chat, use the + button, open Connectors, and switch sesamy on.

Team and Enterprise plans

On Team plans only an organisation Owner can add a custom connector, under Organisation settings > Connectors > Add > Custom > Web. Enterprise plans can also give this to a custom role. After the owner adds it, each member opens Customize > Connectors, finds the connector labelled Custom, and chooses Connect. Free plans can add one custom connector.

You cannot edit a connector's authentication settings after you add it. To change them, remove the connector and add it again.

Claude Desktop reads remote servers from this connector list. Do not add the URL to claude_desktop_config.json: Anthropic documents that file for local servers only.

Source: Get started with custom connectors using remote MCP and Add a custom connector.

ChatGPT ​

  1. Open chatgpt.com/plugins.
  2. Choose the plus button, then Add custom MCP server.
  3. Enter the name sesamy and the server URL https://api2.sesamy.com/mcp.
  4. Set authentication to OAuth.
  5. Tick the risk acknowledgement and choose Create as a plugin.
  6. Review the tools ChatGPT finds, install the plugin from your personal plugins, then mention it in a chat.

Plans and workspace permissions

Custom MCP servers work in ChatGPT on the web, not in the mobile apps. OpenAI documents full support for Business and Enterprise or Edu workspaces. On Pro, custom servers can read and fetch only. In a workspace, an admin or owner may need to create the plugin or grant the permission to Create plugins with MCPs. OpenAI's own help pages differ on whether Business members can connect without an admin, so ask your workspace admin if the option is missing.

ChatGPT asks you to confirm before it runs a tool that writes, and it can only use read tools in deep research. After Sesamy adds or changes tools, open the connection under Plugins and choose Refresh.

Source: Connect custom MCP servers in ChatGPT and Connect ChatGPT to your MCP server.

Claude Code ​

Add the server with one command:

bash
claude mcp add --transport http sesamy https://api2.sesamy.com/mcp

Then start Claude Code, run /mcp, choose sesamy, and finish the sign-in in your browser. You can also sign in from a shell with claude mcp login sesamy. Add --no-browser on a remote machine to print the sign-in URL instead.

By default the server is available only to you in the current project. Add --scope user to use it in every project, or --scope project to share it with your team through a .mcp.json file in the project root:

json
{
  "mcpServers": {
    "sesamy": {
      "type": "http",
      "url": "https://api2.sesamy.com/mcp"
    }
  }
}

Source: Connect Claude Code to tools via MCP.

Other Clients ​

Any client that supports remote MCP servers over Streamable HTTP with OAuth can connect. Give it the URL https://api2.sesamy.com/mcp and sign in when it asks. Many clients take a configuration file shaped like this:

json
{
  "mcpServers": {
    "sesamy": {
      "url": "https://api2.sesamy.com/mcp"
    }
  }
}

Clients differ in the key name and the file location, so follow your client's own guide:

The client finds the rest by itself. An unauthenticated request returns 401 with a WWW-Authenticate header that points to the protected resource metadata at https://api2.sesamy.com/.well-known/oauth-protected-resource, which names the authorization server. If the client needs a redirect URI allowlisted or a client ID registered, it uses CIMD or DCR, so you do not register anything with Sesamy.

To test a connection without an assistant, use the MCP Inspector:

bash
npx @modelcontextprotocol/inspector --server-url https://api2.sesamy.com/mcp --transport http

For a client that supports only local (stdio) servers, the community mcp-remote package can bridge to a remote one. It is not maintained by Sesamy or by the client vendors, so treat it as a last resort:

json
{
  "mcpServers": {
    "sesamy": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api2.sesamy.com/mcp"]
    }
  }
}

Source: MCP authorization specification, MCP Inspector, and mcp-remote.

Sign In and Choose a Publisher ​

The first time your client connects, it opens a browser window. Sign in with your Sesamy account and approve the connection. The client then holds a token that identifies you and renews it quietly until your sign-in expires.

The sign-in does not choose a publisher. You do that in the conversation:

  1. The assistant calls list_vendors to get the publishers you can access, each with an id and a name.
  2. If you have more than one, tell the assistant which one you mean, for example "Use ACME".
  3. Every other tool takes that id as vendorId, and acts on that publisher only.

Behind each call, Sesamy exchanges your token for one limited to the chosen publisher, with the permissions your role has there. If you are not a member of that publisher, the exchange fails and the tool returns an error. The assistant cannot read a publisher you cannot read yourself, and it cannot widen its own access.

Tools ​

The server offers 15 tools. Each tool states whether it only reads or also writes, so a client can ask you before it runs one that writes.

ToolWhat it doesPermissionWrites
list_vendorsLists the publishers you can access, with ids and names.Signed inNo
list_productsLists a publisher's products. Filter with a free-text query.products:readNo
get_productGets one product by SKU.products:readNo
list_usersSearches a publisher's readers by name or email.users:readNo
get_userGets one reader's profile.users:readNo
list_entitlementsLists a reader's entitlements. Filter by type or SKU.entitlements:readNo
list_transactionsSearches transactions by reader, contract, bill, transaction id, free text, or date range.transactions:readNo
get_checkoutGets one checkout by id. Useful for the checkoutId in a checkout.1#confirm webhook event.checkouts:readNo
get_revenue_metricReturns one metric over a date range: current, new, churned, or projected MRR, total revenue, sales, or subscribers. Returns the headline figure and each product's first and last value, not every day.stats:views:readNo
get_stats_breakdownBreaks purchases down by UTM tag, referrer, or content (section, tag, author) over a date range, with sessions, transactions, conversion, and revenue per currency.stats:views:readNo
list_report_typesLists the reports a publisher can generate, with their parameters.reports:readNo
get_report_typeGets one report type, with what each column means.reports:readNo
list_reportsLists reports already generated, with download links for completed ones.reports:readNo
get_reportGets one report and its status, and a fresh download link once it is complete.reports:readNo
create_reportGenerates a report of a chosen type and parameters.reports:readYes

Currency amounts in revenue results are in major units, such as kronor, with the currency stated. Counts, such as subscribers, carry no currency.

Generating a report ​

create_report is the only tool that creates anything. It starts a report in the background, so the assistant then calls get_report until the status is COMPLETED and hands you the downloadUrl. The same report type and parameters always give the same report, so repeating the call is safe: an existing report comes back as it is, and a FAILED one runs again. Reports are described in Generating Reports.

Permissions ​

Each tool runs as a Management API request made for you, so it needs the same permission as the matching route. The Permission column in the table above shows which. Your role in a publisher decides which of these you hold.

If a tool returns a permission error, your role in that publisher does not include it. Ask a publisher admin to change your role in the portal. Roles are per publisher, so you can have access to a tool in one publisher and not in another.

Security ​

  • Read-only by default. Fourteen of the 15 tools only read. The one that writes, create_report, generates a file from data you can already read.
  • Reader data reaches your assistant. list_users, get_user, and list_transactions return personal data such as names and email addresses, and the assistant's provider processes it under your agreement with them. Check that the client you use is approved for this data, and ask for less when you do not need the personal details.
  • Keep tool approval on. Most clients ask before a tool runs. Leave that on, at least for create_report, and read what the assistant is about to do.
  • Treat results as untrusted text. Product names, reader names, and other fields come from your data, so anyone who can set them could plant instructions in them, and an assistant can follow those by mistake. If you also connect a server that can send data out, review each step.
  • Download links are secrets. A report's downloadUrl works for anyone who has it until it expires. Do not paste it into shared channels.
  • Never share your sign-in. Each person connects their own account. Do not put a token in a shared configuration file.

To stop a client from using the server, remove the connector or server in that client.

Troubleshooting ​

The client says it needs to sign in, or returns 401. Your sign-in has expired or was never completed. Reconnect: choose Connect in Claude, or run /mcp in Claude Code. If that does not help, remove the server and add it again. Some clients, such as Claude, cannot edit authentication settings on an existing connector.

The tool returns No access to vendor. You are not a member of that publisher, or you passed the wrong id. Ask the assistant to call list_vendors and use an id from that list.

A tool returns a permission error. Your role in that publisher does not include the permission the tool needs. See Permissions.

The client cannot connect, or reports an unsupported transport. Check that the URL is exactly https://api2.sesamy.com/mcp, and that the transport is Streamable HTTP (http), not SSE. A URL that ends in /sse makes some clients choose the old transport.

The sign-in loops or fails with mcp-remote. Clear its stored credentials and restart the client:

bash
rm -rf ~/.mcp-auth

A report stays PENDING. Reports are built in the background. Ask the assistant to check again with get_report. If the status is FAILED, ask it to create the report again, which runs it again.

A report's download link no longer works. Links expire. Ask for the report again with get_report to get a fresh one.

Nothing connects from the office network. Ask your IT team to allow api2.sesamy.com and sesamy.token.sesamy.com on port 443.

The tools in your client look out of date. Disconnect and reconnect the server. In ChatGPT, open the connection under Plugins and choose Refresh.

FAQ ​

Can the assistant change my data? No. It cannot edit products, readers, contracts, or settings. The only write is create_report, which generates a report.

Which publisher does it use? The one you choose in the conversation. The assistant calls list_vendors, and every other tool takes the vendorId you pick. A call acts on one publisher at a time.

Why do revenue results show only two values per product?get_revenue_metric returns the headline figure and each product's first and last value, so the result fits in the assistant's context. For every daily value, read the stats endpoints of the Management API.

Can I use it from a script or a backend? The MCP server is for people who sign in. For automation, use the Management API with client credentials.

Is there a rate limit? Tool calls use the same routes as the Management API, so see Rate Limits.

Is there a version of this page for AI assistants? Yes. This page is part of /agents.txt, the combined single-file version of these docs.

Next Steps ​

Released under the MIT License.