remote-mcp-functions-python
This project is a quickstart template for deploying a custom Model Context Protocol (MCP) server using Azure Functions and Python. It offers features such as easy deployment, enhanced security measures, and options for OAuth integration. The server can be run locally for development and easily deployed to Azure with network and security configurations.
What are the prerequisites for running the MCP server locally?
You need Python 3.11 or higher, Azure Functions Core Tools 4.0.7030 or later, and the Azure Developer CLI. For local debugging, Visual Studio Code with the Azure Functions extension is recommended.
How do I deploy the MCP server to Azure?
Use the azd up
command to provision the function app and deploy your code to Azure. This command sets up the necessary Azure resources and deploys your application.
Can I use a Virtual Network with the MCP server?
Yes, you can enable VNET support by setting the VNET_ENABLED
environment variable to true before running azd up
.
How do I connect to the MCP server using GitHub Copilot in VS Code?
Set the key as the x-functions-key
header in mcp.json
and use the URL https://<funcappname>.azurewebsites.net/runtime/webhooks/mcp/sse
for the connection.
How can I clean up resources after using the MCP server?
Use the azd down
command to delete the function app and its related resources from Azure, preventing further costs.