OpenAI MCP Example MCP Server

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

Local serverstdio

What is the OpenAI MCP Example MCP Server?

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

The short version

This project showcases how to use the MCP protocol with OpenAI, Azure OpenAI and GitHub Models. It provides a simple demo terminal application that interacts with a TODO list Agent. The agent has access to a set of tools provided by the MCP server.

What it needs from you

  • Node.js and npm (version 22 or higher) - Docker (recommended for running the MCP servers, and DocumentDB Local in Docker) - An OpenAI compatible endpoint: - An OpenAI API key - Or, a GitHub token, if you want to use the GitHub models: https://gh.io/models - Or, if you are using Azure OpenAI, you need to have an [Azure OpenAI

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Node.js and npm (version 22 or higher) - Docker (recommended for running the MCP servers, and DocumentDB Local in Docker) - An OpenAI compatible endpoint: - An OpenAI API key - Or, a GitHub token, if you want to use the GitHub models: https://gh.io/models - Or, if you are using Azure OpenAI, you need to have an [Azure OpenAI
VariableDescriptionRequired
AZURE_OPENAI_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
GITHUB_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use OpenAI MCP Example to Prerequisites.”
  • “Use OpenAI MCP Example to Installation.”
  • “Use OpenAI MCP Example to OpenAI.”

Frequently asked questions

Azure OpenAI (Responses API), OpenAI (Responses API), and GitHub Models (ChatCompletion API).