OpenAI Billing

io.github.mcp-dirPublished by GitHub account mcp-dirv0.1.0Updated Oct 24, 2026

OpenAI organization usage and cost reporting through an admin API key connected by the user.

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Remote MCP server that reports OpenAI organization usage and costs through a user-connected admin API key, plus platform and marketplace helpers.

What you can do
  • List the OpenAI Billing admin API connections linked to the install
  • Retrieve normalized organization usage for completions, embeddings, images, audio, vector stores and code interpreter sessions
  • Retrieve normalized organization costs for a date range, with compact totals and daily costs
  • Check connection status, toolkit state and adapter versions, and report bugs or feedback
  • Search and describe MCPs in the mcp.ai marketplace, and authenticate with a bearer token
When to use it
Useful when you want an assistant to answer questions about OpenAI spend and usage for an organization, or to look up other MCPs in the mcp.ai catalog, without leaving the chat.
Requirements
A remote streamable HTTP endpoint; no local package or runtime. An OpenAI admin API key connected through the server's connect flow, and for IDE agents a bearer access token obtained via browser login, set as an Authorization header or pasted for a session-only login.
Before you install
It asks for an OpenAI admin API key, which grants broad organization-level access, and for an access token that should be treated as a secret. The bug-report tool sends a conversation array of recent messages, so review what is shared. The marketplace and authenticate tools tie the install to the mcp.ai platform.

Installation

In SourceWeft

  1. Open OpenAI Billing in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.mcp-dir%2Fopenai_billing-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "openai-billing": {
      "type": "http",
      "url": "https://api.mcp.ai/p_openai_billing"
    }
  }
}

README

This repository has no README.

Tools

9

openai_billing_list_accounts

List OpenAI Billing admin API connections linked to this install.

Parametersaccount

openai_billing_usage

Get normalized OpenAI organization usage for completions, embeddings, images, audio, vector stores, or code interpreter sessions.

Parameterskindlimitaccountend_timegroup_bydays_backstart_timebucket_width

openai_billing_cost

Get normalized OpenAI organization costs for a date range. Returns compact totals and daily costs.

Parameterslimitaccountend_timegroup_bydays_backstart_timebucket_width

show_version

Show Version

Show the current MCP platform and adapter versions.

Takes no parameters.

report_bug

Report Bug

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

Parameterscontextmessagerequiredconversation

connect

Connection Status

Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.

Takes no parameters.

toolkit_info

Toolkit Info

Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.

Takes no parameters.

marketplace

Marketplace

The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.

Parameterslimitqueryactionmcp_idmessagetool_idargumentsimmediatetier_slugprompt_bodyprompt_slugprompt_tool+11 more

authenticate

Authenticate

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

Parameterstoken

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • License10 pts

    Declare a license in the repository or the registry entry.