Skip to main content

OpenAI MCP Server

A Model Context Protocol server that provides tools to manage OpenAI API keys & spending.

[!CAUTION] This server can access the OpenAI API and may represent a security risk. Exercise caution when using this MCP server to ensure this does not expose any sensitive data.

Available Tools

TODO: Add tool info here

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-openai.

Using PIP

Alternatively you can install mcp-server-openai via pip:

pip install mcp-server-openai

After installation, you can run it as a script using:

python -m mcp_server_openai

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
{
  "mcpServers": {
    "openai": {
      "command": "uvx",
      "args": ["mcp-server-openai"],
      "env": {
        "OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key"
      }
    }
  }
}
Using docker
{
  "mcpServers": {
    "openai": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/openai"],
      "env": {
        "OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key"
      }
    }
  }
}
Using pip installation
{
  "mcpServers": {
    "openai": {
      "command": "python",
      "args": ["-m", "mcp_server_openai"],
      "env": {
        "OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key"
      }
    }
  }
}

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-openai

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/servers/src/openai
npx @modelcontextprotocol/inspector uv run mcp-server-openai

Contributing

We encourage contributions to help expand and improve mcp-server-openai. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.

Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-openai even more powerful and useful.

License

mcp-server-openai is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Metadata

Release files for mcp-server-openai 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-openai 0.1.4
File Size Uploaded Provenance
mcp_server_openai-0.1.4.tar.gz 76.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-openai 0.1.4
File Interpreter ABI Platform
mcp_server_openai-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 81.3 kB

Release files / mcp_server_openai-0.1.4.tar.gz

Download URL mcp_server_openai-0.1.4.tar.gz
Size 76.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c8693d95bb45568f13aad2f06ba3baaa70dafa32e614cd0f6a1c71a4a5e671f0
BLAKE2b-256 checksum
How to use checksums
817a77c6bd432ca19b7dcf04b1f87a0cf10abeec75519db2270546812100de81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / mcp_server_openai-0.1.4-py3-none-any.whl

Download URL mcp_server_openai-0.1.4-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eedd83f9f72b661503eef192690d8556aecbe25ca1633d0bab0175ef7d80ae67
BLAKE2b-256 checksum
How to use checksums
4659f8266056c12fb45b5070d8c3e2395ef5a22eba2c1e75fc27947a7ddc2aba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for mcp-server-openai 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page