.NET OpenAI MCP Agent MCP Server

Sample to create an AI Agent using OpenAI models with any MCP server running on Azure Container Apps

Local serverstdioTypeScript

What is the .NET OpenAI MCP Agent MCP Server?

Sample to create an AI Agent using OpenAI models with any MCP server running on Azure Container Apps

What the server does

This is an MCP agent app written in .NET, using Azure OpenAI, with a remote MCP server written in TypeScript.

  • The MCP host + MCP client app is written in .NET Blazor
  • The MCP client app connects to a to-do MCP server written in TypeScript
  • Both MCP client and server apps are running on Azure Container Apps (ACA)
  • The MCP client app is secured by the built-in auth of ACA
  • The MCP server app is only accessible from the MCP client app

Credentials and setup notes

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
csharpbicep
azure-openaiazure-container-apps

Configuration

VariableDescriptionRequired
AOAI_USE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use .NET OpenAI MCP Agent to csharp.”
  • “Use .NET OpenAI MCP Agent to azure-openai.”

Frequently asked questions

This agent provides a full C#/.NET MCP host and client that talks to a remote TypeScript MCP server. It is a sample to illustrate the MCP pattern using Azure OpenAI and Azure Container Apps.