Serverless AI agent using LangChain.js and Model Context Protocol (MCP) integration to order burgers from a burger restaurant
# Add to your Claude Code skills
git clone https://github.com/Azure-Samples/mcp-agent-langchainjsGuides for using ai agents skills like mcp-agent-langchainjs.
mcp-agent-langchainjs is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Azure-Samples. Serverless AI agent using LangChain.js and Model Context Protocol (MCP) integration to order burgers from a burger restaurant. It has 207 GitHub stars.
mcp-agent-langchainjs's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Azure-Samples/mcp-agent-langchainjs" and add it to your Claude Code skills directory (see the Installation section above).
mcp-agent-langchainjs is primarily written in TypeScript. It is open-source under Azure-Samples on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-agent-langchainjs against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
⭐ If you like this sample, star it on GitHub — it helps a lot!
Overview • Architecture • Getting started • Deploy to Azure • Run locally • MCP tools • Resources

[!IMPORTANT] 👉 Follow the full-length workshop to learn how we built this sample.
This project demonstrates how to build AI agents that can interact with real-world APIs using the Model Context Protocol (MCP). It features a complete burger ordering system with a serverless API, web interfaces, and an MCP server that enables AI agents to browse menus, place orders, and track order status. The agent uses LangChain.js to handle LLM reasoning and tool calling. The system consists of multiple interconnected services, as detailed in the Architecture section below.
The system is hosted on Azure Static Web Apps (web apps) and Azure Functions (API and MCP servers), with Azure Cosmos DB for NoSQL for data storage. You can use it as a starting point for building your own AI agents.
[!TIP] You can test this application locally without deployment needed or any cloud costs. The MCP server also works with popular AI tools like GitHub Copilot, Claude, and other MCP-compatible clients. Follow the instructions in the Local Development section to get started.
Building AI applications can be complex and time-consuming, but using LangChain.js and Azure serverless technologies allows to greatly simplify the process. This application is a AI agent that can be access through different interfaces (web app, CLI) and that can call tools through MCP to interact with a burger ordering API.

The application is made from these main components:
| Component | Folder | Purpose |
|---|---|---|
| Agent Web App | packages/agent-webapp |
Chat interface + conversation rendering |
| Agent API | packages/agent-api |
LangChain.js agent + chat state + MCP client |
| Burger API | packages/burger-api |
Core burger & order management web API |
| Burger MCP Server | packages/burger-mcp |
Exposes burger API as MCP tools |
| Burger Web App | packages/burger-webapp |
Live orders visualization |
| Infrastructure | infra |
Bicep templates (IaC) |
Additionally, these optional and support components are included:
| Component | Folder | Purpose |
|---|---|---|
| Beer MCP Server | packages/beer-mcp |
AI-powered beer recommendations via hybrid RAG |
| Agent CLI | packages/agent-cli |
Command-line interface LangChain.js agent and MCP client |
| Data generation | packages/burger-data |
Scripts to (re)generate burgers data & images |
There are multiple ways to get started with this project. The quickest way is to use GitHub Codespaces that provides a preconfigured environment for you. Alternatively, you can set up your local environment following the instructions below.
You can run this project directly in your browser by using GitHub Codespaces, which will open a web-based VS Code:
A similar option to Codespaces is VS Code Dev Containers, that will open the project in your local VS Code instance using the Dev Containers extension.
You will also need to have Docker installed on your machine to run the container.
You need to install following tools to work on your local machine:
pwsh.exe from a PowerShell command. If this fails, you likely need to upgrade PowerShell.Then you can get the project code:
Fork the project to create your own copy of this repository.
On your forked repository, select the Code button, then the Local tab, and copy the URL of your forked repository.

Open a terminal and run this command to clone the repo: git clone <your-repo-url>
Microsoft.Authorization/roleAssignments/write permissions, such as Role Based Access Control Administrator, User Access Administrator, or Ownerazd auth loginazd up to deploy the application to Azure. This will provision Azure resources and deploy all services
Once deployment is complete, you'll see the URLs of all deployed services in the terminal.
[!IMPORTANT] If you're using an Azure for Students or Free Trial account that you just created, you need to run the following command before running
azd upor else the deployment will fail:azd env set AZURE_OPENAI_MODEL_CAPACITY 1This ensures that the resources deployed will fit within the free tier limits. This limitations reduce the capacity for AI models usage, so you'll also have to provide another OpenAI endpoint to use the application properly. To do that, use the following commands to set th