Niagara MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Niagara MCP ServerCan you track shipment 12345?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Niagara MCP Server — APIM Dynamic Discovery
An MCP (Model Context Protocol) server deployed on Azure that dynamically reads all APIs from Azure API Management and exposes them as AI tools to Copilot Studio. No hardcoding. No static files. APIM is the single source of truth.
Branch: Active development on
development.mainis protected.
How It Works
Copilot Studio (user types plain English)
|
| MCP protocol — Streamable HTTP
v
registry-mcp-server (Azure App Service — Docker container)
├── http_app_apim.py → exposes /mcp endpoint, accepts Copilot Studio connections
├── server_apim.py → MCP protocol: handles tools/list and tools/call
├── apim_dynamic.py → reads all APIs live from APIM Management API, filters, routes
├── registry.py → fallback only (returns empty if tools_registry.json missing)
├── dispatcher.py → fallback HTTP dispatcher for registry-based tools
└── apim_poc/policy.xml → APIM native gateway policy (POC reference, not active)
|
| Real HTTP calls with subscription key
v
Azure API Management (apim-dev-intg)
├── Function Apps (fn-dev-bark, fn-dev-dimitri-getshipmentfromwms, fn-dev-purchase-orders ...)
├── Logic Apps (dimitri-otmtodimitriupdate, ebs-to-dimitri, service-cloud-integration ...)
└── REST APIs (livetracking-getShipments, uomconversiontoerp, otmgenericapi ...)Related MCP server: OpenAPI REST MCP Server
Code Files
File | What it does |
| Core. Authenticates via Managed Identity, calls |
| MCP protocol layer. Handles |
| Web server. Exposes |
| Fallback only. Loads tools from |
| Fallback HTTP dispatcher. Used only if APIM discovery fails |
| APIM native gateway approach (Plan A / POC). Documents rate limiting, JWT auth, and CORS policies |
API Discovery Logic (apim_dynamic.py)
Authenticates using App Service Managed Identity — no passwords, no hardcoded credentials
Calls
management.azure.com→ reads all 56 APIs fromapim-dev-intgChecks for
mcp-enabledtag — if any API is tagged, shows only tagged ones. If none tagged, shows allFilters out EDI/B2B system callbacks by prefix:
o2c_,p2p_,b2b_,echo_api,fourkites_,fap_dev_,3pl_ofc_,fn_dev_edi_Converts remaining 53 business tools to MCP format with name, description, and input schema from APIM metadata
Returns to Copilot Studio — happens live on every session, no caching
Any new Logic App or Function App published to APIM automatically appears in Copilot Studio on the next session. Zero code change, zero redeploy.
Security Controls
Control | Status |
Managed Identity — no credentials in code | Active |
All secrets in App Service env vars — never in code or git | Active |
APIM audit logging via Azure Monitor | Active automatically |
EDI/B2B filter — AI cannot see system integration endpoints | Active |
| Ready — APIM admin adds tags |
Rate limiting — 100 calls/min per subscription | Ready — one line in policy.xml |
JWT Azure AD authentication on /mcp endpoint | Ready — one line in policy.xml |
Tech Stack
Technology | Version | Purpose |
Python | 3.11 | Server language |
MCP SDK | 1.28.1 | MCP protocol |
Starlette | 0.41.3 | Web framework |
Uvicorn | 0.32.1 | ASGI server |
HTTPX | 0.28.1 | Async HTTP calls to APIM |
Azure Identity SDK | ≥1.15.0 | Managed Identity authentication |
Docker | — | Containerization |
Azure App Service | — | Hosting |
Azure Container Registry | acrregistrymcp | Docker image storage |
APIM Management API | 2022-08-01 | Dynamic API discovery |
Azure Resources
Resource group: rg-dev-IntegrationTeamAI — Subscription: Niagara Development
Resource | Type | Purpose |
| App Service | MCP server — live at azurewebsites.net |
| Container Registry | Docker image storage |
| API Management | Source of all 56 APIs |
Environment Variables (App Service)
Variable | Purpose |
| Azure subscription hosting APIM |
| Resource group of APIM instance |
| APIM name — currently |
| APIM gateway URL |
| Subscription key for All APIs product — sent on every tool call |
| Tag filter — default |
Live URLs
URL | Purpose |
| MCP endpoint — Copilot Studio connects here |
| Legacy SSE endpoint |
| APIM gateway |
This server cannot be deployed
Maintenance
Related MCP Connectors
Discover and call 10,000+ production APIs from one MCP server. Pay-per-call billing for AI agents.
Let AI agents query data and act across all your business apps via MCP.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceA service that dynamically generates MCP tools from Swagger/OpenAPI documentation, allowing Claude Desktop to directly invoke REST APIs through natural language.510 npmMIT
- FlicenseNot gradedqualityDmaintenanceDynamically converts any REST service's OpenAPI specification into MCP tools, enabling interaction with REST endpoints through natural language. Supports Spring Boot services and includes auto-discovery for common API configurations.-
- AlicenseNot gradedqualityDmaintenanceExposes backend APIs through Azure API Management as an MCP server to enable AI assistants to interact with product catalogs and order systems. It provides standardized tools for searching products, retrieving details, and managing orders via the Model Context Protocol.MIT
- FlicenseNot gradedqualityDmaintenanceDynamically exposes any OpenAPI/Swagger API as tools for AI assistants, automatically generating MCP tools from OpenAPI specs with authentication support.-