MCP server · Engineering and operations

OpenAI (usage and cost) MCP server

OpenAI (usage and cost) in any MCP client, through Memtro: OpenAI (usage and cost) does not publish this server. Memtro's OpenAI (usage and cost) connector reads OpenAI (usage and cost) through its API with the credentials you connect, and one endpoint hands those tools, every other system you connect and Memtro's memory tools to Claude Code, Cursor, Claude Desktop or anything else that speaks Streamable HTTP, as you.

What the model can do

OpenAI organisation administration through an Admin key: daily costs by project and line item, usage by model and project for completions, embeddings, images, audio and tool calls, projects, members, invites, project members, rate limits and the names of project API keys. Can create, rename and archive projects, invite people and cancel invites, change and remove organisation and project members, and set a project's rate limits. Never calls a model and never returns a key value.

Reads

  • openai_costsWhat the OpenAI organisation spent, in daily buckets, with totals per project, line item (model and token type) or API key.
  • openai_usageOpenAI usage over a window in daily buckets, totalled per project, model…
  • openai_projectsProjects in the OpenAI organisation: id, name, status and when created or archived.
  • openai_project_usersMembers of one OpenAI project: name, email, project role (owner or member) and when added.
  • openai_project_api_keysThe API keys of one OpenAI project by name only: id, name, owner (a person or a service account), whether the owner still has project access…
  • openai_usersMembers of the OpenAI organisation: id, name, email, organisation role (owner or reader) and when added.
  • openai_invitesInvites to the OpenAI organisation: id, email, role, status (pending, accepted, expired), when sent, when it expires and when accepted.
  • openai_project_rate_limitsRate limits of one OpenAI project, per model: requests and tokens per minute, images and audio per minute…

Acts, when you ask

These change something in OpenAI (usage and cost). The model is told to use them only when you ask for exactly that, and each one is granted by name: per team on a shared connection, by the owner on a personal one.

  • openai_create_projectCreates a project in the OpenAI organisation with the name given.
  • openai_rename_projectRenames an OpenAI project.
  • openai_archive_projectArchives an OpenAI project, permanently: OpenAI cannot unarchive it, and every API key in it stops working…
  • openai_invite_userInvites someone to the OpenAI organisation by email, with the organisation role given (reader or owner: owners can change everything).
  • openai_delete_inviteCancels a pending OpenAI organisation invite, so its link no longer works.
  • openai_change_user_roleChanges a member's OpenAI organisation role to owner (can change everything, including billing and keys) or reader.
  • openai_remove_userRemoves a member from the OpenAI organisation: they lose access to every project at once.
  • openai_add_project_userAdds an existing organisation member to an OpenAI project with the role given (member, or owner who manages the project).
  • openai_change_project_user_roleChanges a member's role in one OpenAI project to member or owner.
  • openai_remove_project_userRemoves a member from one OpenAI project; they keep their organisation membership.
  • openai_set_project_rate_limitsChanges an OpenAI project's rate limits for one model (the limits given; others are kept).

Connect it

First connect OpenAI (usage and cost) on Dashboard → Connections, then add Memtro to your client once. The OpenAI (usage and cost) tools appear alongside the tools of everything else you have connected; nothing is configured per connector.

Claude Code

The Memtro plugin registers the server and a skill for when to use it; the tools are then available in every session.

claude plugin marketplace add memtro-org/claude-memtro
claude plugin install memtro@memtro --config api_key=sk-memtro-...

Cursor

Add the server to .cursor/mcp.json in the project, or to the global file under ~/.cursor/.

{
  "mcpServers": {
    "memtro": {
      "url": "https://platform.memtro.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk-memtro-..."
      }
    }
  }
}

Claude Desktop

Create a personal API key on Dashboard → Profile → API keys. In Claude Desktop add an MCP server of type HTTP with URL https://platform.memtro.com/api/mcp and the header Authorization: Bearer sk-memtro-…

OpenCode

A remote server in opencode.json.

{
  "mcp": {
    "memtro": {
      "type": "remote",
      "url": "https://platform.memtro.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk-memtro-..."
      }
    }
  }
}

Pi

One command: pi mcp add memtro --url https://platform.memtro.com/api/mcp --bearer-token-env-var MEMTRO_API_KEY. Tools arrive as mcp__memtro__*. The pi-memtro extension registers it for you, alongside Memtro as the model.

Any other client

Add an MCP server of type HTTP (Streamable HTTP, stateless) at https://platform.memtro.com/api/mcp with the header Authorization: Bearer sk-memtro-.... Codex, Zed, Windsurf, Cline and the SDKs all take a remote server this way.

Who may use it

The key identifies the person, and the server offers that person the tools they may use everywhere else in Memtro. A shared OpenAI (usage and cost) connection is used by the teams an administrator granted it to, tool by tool, on the Permissions page; a personal connection is used by its owner alone, and its tools that act stay off until the owner allows them. See Teams and permissions and Connectors.

Ask it like this

  • › What did we spend on OpenAI last month?
  • › Which project has cost most in the last 90 days?
  • › How many tokens did each model use in the last week?
  • › Which API keys has nobody used in a month?
  • › Add Priya Sharma to the data-platform project as a member.

Questions

Is this an official OpenAI (usage and cost) MCP server?
No. It is Memtro's MCP server with Memtro's OpenAI (usage and cost) connector behind it: the connector reads OpenAI (usage and cost) through its API with the credentials you connect on Dashboard → Connections, and OpenAI (usage and cost) publishes nothing here. The same endpoint carries every other system you connect and Memtro's memory tools.
What does it cost?
Nothing on top of Memtro. One price per organisation by its number of users, from $50 a month for up to 10 users after a 7-day free trial, with every connector, the MCP server, jobs and memory included. You bring your own model keys.
Can it change anything in OpenAI (usage and cost)?
Only when you ask, and only what it has been granted: create an OpenAI project; rename an OpenAI project; archive an OpenAI project permanently: its API keys stop working; invite someone to the OpenAI organisation by email with a chosen role (OpenAI emails them); cancel a pending OpenAI organisation invite; change a member's OpenAI organisation role (owner or reader); remove a member from the OpenAI organisation; add an organisation member to an OpenAI project with a chosen role; change a member's role in an OpenAI project; remove a member from an OpenAI project; change an OpenAI project's rate limits for one model. Every other tool reads, searches or lists. An administrator grants each acting tool by name per team, and a personal connection acts only after its owner allows it.
Which clients work?
Any MCP client that speaks Streamable HTTP: Claude Code, Cursor, Claude Desktop, OpenCode, Codex, Zed, Windsurf, Cline and the Anthropic and OpenAI SDKs. There is no local process to run; the server is remote and authenticated with your key.

Other MCP servers · Engineering and operations

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time