AlphaVantage MCP Server with Azure Functions
@dsaad68
关于 AlphaVantage MCP Server with Azure Functions
A demo to showcase a MCP Server with Azure Functions
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"remote-mcp-azure-function": {
"command": "uv",
"args": [
"sync",
"--frozen"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is AlphaVantage MCP Server with Azure Functions?
The AlphaVantage MCP Server with Azure Functions is an Azure Function that acts as a bridge between an AI agent (via the Model Context Protocol) and the AlphaVantage Financial API. It exposes financial data endpoints as MCP tools, enabling AI agents to retrieve company financials and perform analysis.
How to use AlphaVantage MCP Server with Azure Functions?
Clone the repository, create a virtual environment with uv sync --frozen, and add your AlphaVantage API key to a local.settings.json file in the src directory. Run locally with cd src && func start. For deployment, use azd up after logging in with azd auth login. After deployment, retrieve your MCP endpoint URL by fetching the Azure Functions MCP extension system key.
Key features of AlphaVantage MCP Server with Azure Functions
- Exposes five financial data endpoints as MCP tools
- Provides company overview, income statement, balance sheet, cash flow, and earnings report
- Easy local development with Azure Functions Core Tools
- Simple deployment to Azure using Azure Developer CLI (azd)
- Includes a demo agent using the Agno framework
- Supports VS Code integration for MCP development
Use cases of AlphaVantage MCP Server with Azure Functions
- AI agents retrieving real-time financial statements for analysis
- Automating fundamental research on public companies
- Building conversational financial assistants with natural language queries
- Testing MCP endpoints locally before deploying to Azure
FAQ from AlphaVantage MCP Server with Azure Functions
What prerequisites are needed?
You need an Azure subscription, Azure Developer CLI, Azure Functions Core Tools, Python 3.11, and an AlphaVantage API key.
How do I deploy the server to Azure?
Log in with azd auth login, then run azd up. This provisions Azure resources and deploys the Function App.
How do I get the MCP endpoint URL after deployment?
Run az functionapp keys list --resource-group <resource_group> --name <function_app_name> and use the returned MCP extension system key in the URL https://<funcappname>.azurewebsites.net/runtime/webhooks/mcp/sse?code=<your-mcp-extension-system-key>.
What environment variables are required?
AlphaVantage API key must be set as ALPHAVANTAGE_API_KEY in the local.settings.json for local development or as a function app setting in Azure.
How can I add more environment variables?
Add them to the infra/main.parameters.json file under functionAppEnvironmentVariables and redeploy, or use the Azure CLI az functionapp config appsettings set command.

评论