This project showcases how to use the MCP protocol with Azure OpenAI. It provides a simple example to interact with OpenAI's API seamlessly via an MCP server and client.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add openai-example -- docker compose up -d --build~/.codex/config.toml
[mcp_servers.openai-example]
command = "docker"
args = ["compose", "up", "-d", "--build"]
# codex mcp add openai-example -- docker compose up -d --build~/.cursor/mcp.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}.vscode/mcp.json
{
"servers": {
"openai-example": {
"type": "stdio",
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"openai-example": {
"command": "docker",
"args": [
"compose",
"up",
"-d",
"--build"
]
}
}
}