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?

Most AI and media services work still happens through a UI a human drives. OpenAI MCP Example MCP server moves it into the conversation instead. 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.

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.

The tools it exposes

The server publishes 3 tools. What each one is for:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server
  • OpenAI — To use the OpenAI API, you need to set your OPENAI_API_KEY key in the .env file:

What it needs from you

Configuration is passed through the environment: AZURE_OPENAI_API_KEY, OPENAI_API_KEY, GITHUB_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • 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

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

How it compares

Plenty of AI and media services servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. OpenAI MCP Example's toolset — Prerequisites, Installation, OpenAI — is a fair guide to whether it matches your workflow. It is maintained by manekinekko; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.
OpenAITo use the OpenAI API, you need to set your OPENAI_API_KEY key in the .env file:

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).