MCP Container (TypeScript)

v1.0.0Cloud Servicesstable

This is a quick start guide that provides the basic building blocks to set up a remote Model Context Protocol (MCP) server using Azure Container Apps. The MCP server is built using Node.js and TypeScript, and it can be used to run various tools and s

aiazureazure-container-appscontainersdocker
Share:
47
Stars
0
Downloads
0
Weekly
0/5

What is MCP Container (TypeScript)?

MCP Container (TypeScript) is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this is a quick start guide that provides the basic building blocks to set up a remote model context protocol (mcp) server using azure container apps. the mcp server is built using node.js and typescr...

This is a quick start guide that provides the basic building blocks to set up a remote Model Context Protocol (MCP) server using Azure Container Apps. The MCP server is built using Node.js and TypeScript, and it can be used to run various tools and s

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • This is a quick start guide that provides the basic building

Use Cases

Azure Container Apps deployment
Remote MCP server on cloud infrastructure
Azure-Samples

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedApr 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-container-ts

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MCP Container (TypeScript)

The MCP Container TypeScript sample from Azure Samples is a quickstart template that demonstrates how to deploy a remote MCP server to Azure Container Apps using Node.js and TypeScript. It ships with a working todo-list MCP server (four tools: add_todo, list_todos, complete_todo, delete_todo) backed by in-memory SQLite, JWT-based authentication with role-based access control, and both local development and one-command Azure deployment via the Azure Developer CLI. It serves as a reference architecture for teams building production-grade remote MCP servers on Azure.

Prerequisites

  • Node.js 22 or later installed
  • Azure Developer CLI (azd) installed for cloud deployment — run 'winget install microsoft.azd' or see https://aka.ms/azd
  • Docker Desktop installed (required for dev container support and container builds)
  • An Azure subscription with sufficient permissions to create Container Apps resources
1

Clone the repository

Clone the Azure Samples MCP Container TypeScript repository to your local machine.

git clone https://github.com/Azure-Samples/mcp-container-ts
cd mcp-container-ts
2

Install dependencies

Install the Node.js dependencies for the project.

npm install
3

Generate a JWT token for authentication

The server uses JWT authentication. Generate an admin token to get full access. This writes the token configuration to the .env file.

npm run generate-token -- --admin
4

Start the server locally

Run the development server. It will listen on http://localhost:3000/mcp.

npm run dev
5

Connect your MCP client to the local server

Configure your MCP client to connect to the local server endpoint with the Bearer token from your .env file. The .vscode/mcp.json file in the repo shows the VS Code configuration format.

{
  "mcpServers": {
    "mcp-container-ts": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_JWT_TOKEN_HERE"
      }
    }
  }
}
6

Deploy to Azure Container Apps (optional)

To deploy the server to Azure for remote access, authenticate with Azure and run azd up. The deployment configures autoscaling, HTTPS, and persistent infrastructure automatically.

azd auth login
azd up

MCP Container (TypeScript) Examples

Client configuration

Connect an MCP client to the locally running server. Replace YOUR_JWT_TOKEN_HERE with the token generated by 'npm run generate-token -- --admin'.

{
  "mcpServers": {
    "mcp-container-ts": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_JWT_TOKEN_HERE"
      }
    }
  }
}

Prompts to try

After connecting, use these prompts to test the todo-list MCP tools shipped with the sample server.

- "Add a new todo: Review the Azure Container Apps deployment guide"
- "List all my todos"
- "Mark the first todo as complete"
- "Delete all completed todos"
- "How many incomplete todos do I have?"

Troubleshooting MCP Container (TypeScript)

401 Unauthorized when connecting to the MCP server

Ensure you generated a JWT token using 'npm run generate-token -- --admin' and are passing it as a Bearer token in the Authorization header of your MCP client config. Check the .env file to confirm the token was written correctly.

azd up fails during Azure deployment

Ensure you're logged in with 'azd auth login' and that your Azure subscription has permissions to create Container Apps, Container Registries, and related resources. Run 'az account show' to confirm your active subscription.

npm run dev fails — port 3000 already in use

Another process is using port 3000. Stop the conflicting process or set a different port with the PORT environment variable: 'PORT=3001 npm run dev'. Update your MCP client URL accordingly.

Frequently Asked Questions about MCP Container (TypeScript)

What is MCP Container (TypeScript)?

MCP Container (TypeScript) is a Model Context Protocol (MCP) server that this is a quick start guide that provides the basic building blocks to set up a remote model context protocol (mcp) server using azure container apps. the mcp server is built using node.js and typescript, and it can be used to run various tools and s It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MCP Container (TypeScript)?

Follow the installation instructions on the MCP Container (TypeScript) GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP Container (TypeScript)?

MCP Container (TypeScript) works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP Container (TypeScript) free to use?

Yes, MCP Container (TypeScript) is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-container-ts": { "command": "npx", "args": ["-y", "mcp-container-ts"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MCP Container (TypeScript)?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides