Skip to content

MiguelElGallo/myfirstmcp-openai

page_type languages products urlFragment name description
sample
azdeveloper
python
bicep
html
azure
azure-app-service
azure-simple-fastmcp-appservice
Deploy a minimal FastMCP Application on Azure App Service (Python)
A tiny, no-frills, template to deploy Python's FastMCP web framework to Azure App Service in the free tier.

Simple FastMCP AZD Template

The most basic FastMCP "hello world" application as an AZD template ready for Azure App Service. Watch the video for a walkthrough of what it does.

system diagram

Usage

  1. Clone Repo, go to the folder, Install AZD and run the following command to initialize the project.

    azd init

    This command will prompt you for the following information:

    • Environment Name: This will be used as a prefix for the resource group that will be created to hold all Azure resources. This name should be unique within your Azure subscription.
  2. Login to your Azure account.

    azd auth login
  3. Run the following command to build a deployable copy of your application, provision the template's infrastructure to Azure and also deploy the application code to those newly provisioned resources.

    azd up

    This command will prompt you for the following information:

    • Azure Location: The Azure location where your resources will be deployed.
    • Azure Subscription: The Azure Subscription where your resources will be deployed.

    NOTE: This may take a while to complete as it executes three commands: azd package (builds a deployable copy of your application), azd provision (provisions Azure resources), and azd deploy (deploys application code). You will see a progress indicator as it packages, provisions and deploys your application.

  4. Then make changes to app.py and run azd deploy again to update your changes.

Notes

This uses the F1 (free) SKU for app service, which has limited CPU and RAM resources.

See the pricing calculator for details on paid SKUs replace the SKU option with a suitable choice.

Client

Using any MCP client and connect to: https://yourapp.azurewebsites.net/sse

The server also includes the MCP inspector, which is a web interface to inspect the MCP messages. You can access it at: (http://yourapp.azurewebsites.net/#resources)

About

My first MCP integrated with OpenAI

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published