Skip to main content

A Model Context Protocol server providing tools to manage OpenAI API keys & spending

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_openai-0.1.4.tar.gz (76.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_openai-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_openai-0.1.4.tar.gz.

File metadata

  • Download URL: mcp_server_openai-0.1.4.tar.gz
  • Upload date:
  • Size: 76.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for mcp_server_openai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c8693d95bb45568f13aad2f06ba3baaa70dafa32e614cd0f6a1c71a4a5e671f0
MD5 9439dbbf5b5edfaa8fdba8cae1318934
BLAKE2b-256 817a77c6bd432ca19b7dcf04b1f87a0cf10abeec75519db2270546812100de81

See more details on using hashes here.

File details

Details for the file mcp_server_openai-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_openai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eedd83f9f72b661503eef192690d8556aecbe25ca1633d0bab0175ef7d80ae67
MD5 d3ab8f3c0f9db680a49c5ff6c58892dc
BLAKE2b-256 4659f8266056c12fb45b5070d8c3e2395ef5a22eba2c1e75fc27947a7ddc2aba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page