OpenAI Billing

io.github.mcp-dir由 GitHub 帳號 mcp-dir 發布v0.1.0更新於 Oct 24, 2026

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

已驗證Streamable HTTP可網頁執行金融資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,透過使用者連結的 OpenAI 管理員 API 金鑰查詢組織用量與費用,並提供平台與市集輔助工具。

可以做什麼
  • 列出與此安裝關聯的 OpenAI Billing 管理員 API 連線
  • 取得補全、嵌入、影像、音訊、向量儲存與程式碼解譯器工作階段的組織用量
  • 依日期區間取得組織費用,回傳彙總總額與每日費用
  • 查看連線狀態、工具組狀態與轉接器版本,並提交錯誤或回饋
  • 在 mcp.ai 市集中搜尋與檢視 MCP,並以存取權杖完成驗證
適用情境
適合讓助理直接回答組織 OpenAI 用量與花費的問題,或在對話中尋找 mcp.ai 目錄中的其他 MCP 伺服器。
執行需求
遠端 streamable HTTP 端點,不需本機套件或執行環境。需透過伺服器的連線流程接入 OpenAI 管理員 API 金鑰;IDE 代理另需經瀏覽器登入取得存取權杖,設為 Authorization 標頭或貼上以供單次工作階段登入。
安裝前請注意
需要 OpenAI 管理員 API 金鑰,權限涵蓋整個組織,存取權杖也應視為機密。錯誤回報工具會送出含近期訊息的對話陣列,送出前請確認內容。市集與驗證工具會把此安裝綁定到 mcp.ai 平台。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 OpenAI Billing,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.mcp-dir%2Fopenai_billing-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

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

README

該儲存庫沒有 README。

工具

9

openai_billing_list_accounts

List OpenAI Billing admin API connections linked to this install.

輸入參數account

openai_billing_usage

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

輸入參數kindlimitaccountend_timegroup_bydays_backstart_timebucket_width

openai_billing_cost

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

輸入參數limitaccountend_timegroup_bydays_backstart_timebucket_width

show_version

Show Version

Show the current MCP platform and adapter versions.

無需輸入參數。

report_bug

Report Bug

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

輸入參數contextmessage必填conversation

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.

無需輸入參數。

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.

無需輸入參數。

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.

輸入參數limitqueryactionmcp_idmessagetool_idargumentsimmediatetier_slugprompt_bodyprompt_slugprompt_tool另有 11 個

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.

輸入參數token

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。