Skip to content

dgusoff/simple-python-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Python MCP Server for Azure

This is a bare-bones Python based MCP server made for hosting in Azure App Service.

Getting Started Locally

  1. pull this repo down
  2. uv venv
  3. .venv\Scripts\activate
  4. pip install -r requirements.txt
  5. run uvicorn server:app --host 0.0.0.0 --port 8000
  6. run npx @modelcontextprotocol/inspector to launch the MCP inspector and connect over Streamable HTTP to http://localhost:8000/mcp

Deploy to Azure

  1. Create an Azure App Service on Linux targeting Python 3.12
  2. Set the startup command to uvicorn server:app --host 0.0.0.0 --port 8000 --proxy-headers --forwarded-allow-ips=*
  3. set an environment variable SCM_DO_BUILD_DURING_DEPLOYMENT to true
  4. turn on Always On
  5. deploy this code using: az webapp up --name app-name --resource-group resource-group-name
  6. run the MCP inspector and connect to https://simple-web-mcp.azurewebsites.net/mcp/

About

a bare-bones MCP server using Python and FastMCP for hosting in Azure App Service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages