{"id":29612312,"url":"https://github.com/unic/azure-webapp-mcp","last_synced_at":"2026-01-20T16:26:46.641Z","repository":{"id":305171763,"uuid":"1022119053","full_name":"unic/azure-webapp-mcp","owner":"unic","description":"Template Repository to use Azure Web Apps as MCP Server (Python FastMCP)","archived":false,"fork":false,"pushed_at":"2025-08-05T08:48:47.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-18T04:40:06.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-18T13:37:56.000Z","updated_at":"2025-08-05T08:48:50.000Z","dependencies_parsed_at":"2025-07-18T19:05:08.056Z","dependency_job_id":"834fe4e7-0bea-4044-89f1-3b22dd82881d","html_url":"https://github.com/unic/azure-webapp-mcp","commit_stats":null,"previous_names":["unic/azure-webapp-mcp"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/unic/azure-webapp-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fazure-webapp-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fazure-webapp-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fazure-webapp-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fazure-webapp-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unic","download_url":"https://codeload.github.com/unic/azure-webapp-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fazure-webapp-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-20T21:38:07.342Z","updated_at":"2026-01-20T16:26:46.626Z","avatar_url":"https://github.com/unic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azure-webapp-mcp\n\nTemplate Repository to use Azure Web Apps as MCP Server (Python FastMCP)\n\nFor more details, see: [Azure Web App](https://uniccom.atlassian.net/wiki/spaces/INNOLAB/pages/575571284/Azure+Web+App)\n\nFor the Azure Web App approach of hosting a Python MCP Server, we're more flexible and we can use the officially supported FastMCP library for this:\n\nhttps://github.com/jlowin/fastmcp\n\n## Prerequisites\n\n- Python version 3.11 or higher\n- **uv** (https://docs.astral.sh/uv/): `brew install uv`\n- **Azure CLI**  \n  The easiest is to install the Azure CLI Tools using Homebrew:\n  - Azure CLI: `brew update \u0026\u0026 brew install azure-cli`\n  - Azure Developer CLI: `brew tap azure/azd \u0026\u0026 brew install azd`\n- **Docker desktop** https://docs.docker.com/desktop/setup/install/mac-install/ or **Colima** (MIT License)\n  ```bash\n  brew install colima\n  brew install docker  # docker is still required for colima\n  ```\n\nFor Colima you also need BuildX:\n```bash\nbrew install docker-buildx\n```\n\nThen to ensure Buildx plugins are available in the docker CLI, especially for Colima, you need to update `~/.docker/config.json` and add this:\n```json\n\"cliPluginsExtraDirs\": [\"$HOMEBREW_PREFIX/lib/docker/cli-plugins\"]\n```\nYou probably need to replace `$HOMEBREW_PREFIX` with the output of `brew --prefix`\n\n## Setup locally\n\n1. Create a repo based on our template: https://github.com/unic/azure-webapp-mcp\n2. Run `uv sync`\n3. Then:\n   ```bash\n   uv run uvicorn server:app --host 0.0.0.0 --port 8000\n   ```\n   to start the server locally at port 8000.\n\nYou can then run `uv run client.py` in a new terminal to see if it works:\n```\nCallToolResult(content=[TextContent(type='text', text='Hello, John!', annotations=None, meta=None)], structured_content={'result': 'Hello, John!'}, data='Hello, John!', is_error=False)\n```\n\n## Local Debugging\n\nYou can run the local server in debug mode in VSCode (instead of using `uv run…`), set a breakpoint somewhere and then again run the client in another terminal. The execution should stop at the breakpoint.\n\n## Setup Resources in Azure\n\nFollow these steps in order:\n\n1. https://uniccom.atlassian.net/wiki/spaces/INNOLAB/pages/576061498\n2. https://uniccom.atlassian.net/wiki/spaces/INNOLAB/pages/576028690\n3. https://uniccom.atlassian.net/wiki/spaces/INNOLAB/pages/576028740\n\n## Deploy to Azure\n\nOnce all resources are created, we can deploy the MCP server to our Azure Web App:\n\n```bash\n./deploy.sh\n```\n\nIf there is an issue with the permissions, you might need to run:\n```bash\nchmod +x deploy.sh\n```\n\nIt will then ask you to login, choose a subscription and enter:\n- Name of Resource Group\n- Name of the Container Registry\n- Name of the Web App\n- Tag of your new docker image\n- Name of the new docker image\n\nOnce deployed, restart the Web App in the portal.\n\n## Testing the deployed MCP-Server\n\nNow you can test the deployed Server in different ways, for example:\n\n### Using the client.py\nChange the URL to the domain of the web app, e.g.:\n```\nhttps://test-mcp-web-app-gzfkgbgefud0cbc3.switzerlandnorth-01.azurewebsites.net/mcp/\n```\n\n### Using VSCode\nCMD+Shift+P using \"MCP: Add Server\", HTTP, enter the whole url with `/mcp/` at the end, give it a name, and choose workspace or local. Then in agent mode in the chat window you can test it. The entry in the config in VSCode should look like this:\n\n```json\n\"test-mcp-web-app\": {\n    \"url\": \"https://test-mcp-web-app-gzfkgbgefud0cbc3.switzerlandnorth-01.azurewebsites.net/mcp/\",\n    \"type\": \"http\"\n}\n```\n\n### Using Claude desktop\nOpen the `claude_desktop_config.json` and add this to the \"mcpServers\" object:\n\n```json\n\"test-mcp-web-app\": {\n  \"command\": \"npx\",\n  \"args\": [\n    \"mcp-remote\",\n    \"https://test-mcp-web-app-gzfkgbgefud0cbc3.switzerlandnorth-01.azurewebsites.net/mcp/\"\n  ]\n}\n```\n\n### Using Copilot Studio\nFollowing this guide: https://uniccom.atlassian.net/wiki/spaces/INNOLAB/pages/575636509/Copilot+Studio+MCP, you can add it to Copilot Studio.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funic%2Fazure-webapp-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funic%2Fazure-webapp-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funic%2Fazure-webapp-mcp/lists"}