# 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`](https://docs.astral.sh/uv/) no specific installation is needed. We will use [`uvx`](https://docs.astral.sh/uv/guides/tools/) 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:
<details>
<summary>Using uvx</summary>
```json
{
"mcpServers": {
"openai": {
"command": "uvx",
"args": ["mcp-server-openai"],
"env": {
"OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key"
}
}
}
}
```
</details>
<details>
<summary>Using docker</summary>
```json
{
"mcpServers": {
"openai": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/openai"],
"env": {
"OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key"
}
}
}
}
```
</details>
<details>
<summary>Using pip installation</summary>
```json
{
"mcpServers": {
"openai": {
"command": "python",
"args": ["-m", "mcp_server_openai"],
"env": {
"OPENAI_ADMIN_API_KEY": "your_openai_admin_api_key"
}
}
}
}
```
</details>
## 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "mcp-server-openai",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Maxwell Weinzierl <maxwellweinzierl@gmail.com>",
"keywords": "automation, dexcom, http, llm, mcp",
"author": "Maxwell Weinzierl",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/81/7a/77c6bd432ca19b7dcf04b1f87a0cf10abeec75519db2270546812100de81/mcp_server_openai-0.1.4.tar.gz",
"platform": null,
"description": "# OpenAI MCP Server\n\nA Model Context Protocol server that provides tools to manage OpenAI API keys & spending.\n\n> [!CAUTION]\n> 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.\n\n## Available Tools\n\nTODO: Add tool info here\n\n## Installation\n\n### Using uv (recommended)\n\nWhen using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-server-openai*.\n\n### Using PIP\n\nAlternatively you can install `mcp-server-openai` via pip:\n\n```\npip install mcp-server-openai\n```\n\nAfter installation, you can run it as a script using:\n\n```\npython -m mcp_server_openai\n```\n\n## Configuration\n\n### Configure for Claude.app\n\nAdd to your Claude settings:\n\n<details>\n<summary>Using uvx</summary>\n\n```json\n{\n \"mcpServers\": {\n \"openai\": {\n \"command\": \"uvx\",\n \"args\": [\"mcp-server-openai\"],\n \"env\": {\n \"OPENAI_ADMIN_API_KEY\": \"your_openai_admin_api_key\"\n }\n }\n }\n}\n```\n</details>\n\n<details>\n<summary>Using docker</summary>\n\n```json\n{\n \"mcpServers\": {\n \"openai\": {\n \"command\": \"docker\",\n \"args\": [\"run\", \"-i\", \"--rm\", \"mcp/openai\"],\n \"env\": {\n \"OPENAI_ADMIN_API_KEY\": \"your_openai_admin_api_key\"\n }\n }\n }\n}\n```\n</details>\n\n<details>\n<summary>Using pip installation</summary>\n\n```json\n{\n \"mcpServers\": {\n \"openai\": {\n \"command\": \"python\",\n \"args\": [\"-m\", \"mcp_server_openai\"],\n \"env\": {\n \"OPENAI_ADMIN_API_KEY\": \"your_openai_admin_api_key\"\n }\n }\n }\n}\n```\n</details>\n\n## Debugging\n\nYou can use the MCP inspector to debug the server. For uvx installations:\n\n```\nnpx @modelcontextprotocol/inspector uvx mcp-server-openai\n```\n\nOr if you've installed the package in a specific directory or are developing on it:\n\n```\ncd path/to/servers/src/openai\nnpx @modelcontextprotocol/inspector uv run mcp-server-openai\n```\n\n## Contributing\n\nWe 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.\n\nPull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-openai even more powerful and useful.\n\n## License\n\nmcp-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.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Model Context Protocol server providing tools to manage OpenAI API keys & spending",
"version": "0.1.4",
"project_urls": null,
"split_keywords": [
"automation",
" dexcom",
" http",
" llm",
" mcp"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4659f8266056c12fb45b5070d8c3e2395ef5a22eba2c1e75fc27947a7ddc2aba",
"md5": "d3ab8f3c0f9db680a49c5ff6c58892dc",
"sha256": "eedd83f9f72b661503eef192690d8556aecbe25ca1633d0bab0175ef7d80ae67"
},
"downloads": -1,
"filename": "mcp_server_openai-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d3ab8f3c0f9db680a49c5ff6c58892dc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 4969,
"upload_time": "2025-08-07T03:26:55",
"upload_time_iso_8601": "2025-08-07T03:26:55.938188Z",
"url": "https://files.pythonhosted.org/packages/46/59/f8266056c12fb45b5070d8c3e2395ef5a22eba2c1e75fc27947a7ddc2aba/mcp_server_openai-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "817a77c6bd432ca19b7dcf04b1f87a0cf10abeec75519db2270546812100de81",
"md5": "9439dbbf5b5edfaa8fdba8cae1318934",
"sha256": "c8693d95bb45568f13aad2f06ba3baaa70dafa32e614cd0f6a1c71a4a5e671f0"
},
"downloads": -1,
"filename": "mcp_server_openai-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "9439dbbf5b5edfaa8fdba8cae1318934",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 76306,
"upload_time": "2025-08-07T03:26:56",
"upload_time_iso_8601": "2025-08-07T03:26:56.993370Z",
"url": "https://files.pythonhosted.org/packages/81/7a/77c6bd432ca19b7dcf04b1f87a0cf10abeec75519db2270546812100de81/mcp_server_openai-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-07 03:26:56",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mcp-server-openai"
}