Loading...
pip install -e{
"mcpServers": {
"openai-server": {
"command": "python",
"args": ["-m", "src.mcp_server_openai.server"],
"env": {
"PYTHONPATH": "C:/path/to/your/mcp-server-openai",
"OPENAI_API_KEY": "your-key-here"
}
}
}
}query_openai_modelQueries a specified OpenAI model with a given prompt and returns the response.
Read-only access to model outputs; no destructive operations.
This server is relatively safe for querying OpenAI models, but the security of the OpenAI API key is crucial. Ensure the API key is stored securely and rotated regularly. Prompt injection vulnerabilities should be mitigated through careful input validation.