Skip to main content
Glama

OpenAI MCP Server

by Supermaxman

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

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:

{ "mcpServers": { "openai": { "command": "uvx", "args": ["mcp-server-openai"], "env": { "OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key" } } } }
{ "mcpServers": { "openai": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/openai"], "env": { "OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key" } } } }
{ "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.

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Provides tools to manage OpenAI API keys and spending through the OpenAI API. Requires an OpenAI admin API key for secure access to account management features.

  1. Available Tools
    1. Installation
      1. Using uv (recommended)
      2. Using PIP
    2. Configuration
      1. Configure for Claude.app
    3. Debugging
      1. Contributing
        1. License

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A server implementation that provides a unified interface for OpenAI services, Git repository analysis, and local filesystem operations through REST API endpoints.
            Last updated -
            GPL 3.0
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            quality
            Enables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.
            Last updated -
            29
            44
            MIT License
          • -
            security
            A
            license
            -
            quality
            Enables AI assistants to access and manage accounting data through the freee accounting API, supporting operations like transaction management, financial analysis, and account item management.
            Last updated -
            620
            1
            MIT License
          • -
            security
            F
            license
            -
            quality
            A plug-and-play solution that enhances AI assistants by enabling them to create projects, manage configurations, and interact with Openfort's wallet infrastructure through 42 specialized tools.
            Last updated -
            2
            • Apple
            • Linux

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/Supermaxman/mcp-server-openai'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server