Skip to main content
Glama
dsaad68

AlphaVantage MCP Server

by dsaad68

AlphaVantage MCP Server with Azure Functions

This project implements an Azure Function that serves as a bridge between an Agent as a MCP Server and the AlphaVantage Financial API. It allows AI agents to access financial data and perform financial analysis through tools exposed via MCP.

The Azure Function exposes the following financial data endpoints as MCP tools:

  • Company Overview

  • Income Statement

  • Balance Sheet

  • Cash Flow

  • Earnings Report

There is a demo agent created with PydanticAI in the agent directory that can be used to test the MCP server. More information Demo Agent file.

Prerequisites

Related MCP server: YFinance MCP Server

Local Development

  1. Clone this repository

  2. Create a virtual environment and install dependencies:

uv sync --frozen
  1. Create a local.settings.json file in the src directory with your AlphaVantage API key:

{
  "IsEncrypted": false,
  "Values": {
    "FUNCTIONS_WORKER_RUNTIME": "python",
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "ALPHAVANTAGE_API_KEY": "your-alphavantage-api-key"
  }
}
  1. Run the function locally:

cd src
func start

Deployment

  1. Log in to Azure:

azd auth login
  1. Deploy the application:

azd up

This will provision the necessary Azure resources and deploy the Function App.

Note: For setting up environment variables, refer to the Adding Environment Variables section.

Getting the MCP Endpoint URL

After deployment, retrieve your MCP extension system key:

az functionapp keys list \
  --resource-group <resource_group> \ 
  --name <function_app_name>

Your MCP endpoint URL will be:

https://<funcappname>.azurewebsites.net/runtime/webhooks/mcp/sse?code=<your-mcp-extension-system-key>

Adding Environment Variables

You can add environment variables to your Azure Function in two ways:

Add your environment variables to the infra/main.parameters.json file:

{
  "parameters": {
    // Other parameters...
    "functionAppEnvironmentVariables": {
      "value": {
        "ALPHAVANTAGE_API_KEY": "your-api-key",
        "MY_VARIABLE": "my-value"
      }
    }
  }
}

Then deploy with:

azd up

2. Using Azure CLI (for updating existing deployments)

az functionapp config appsettings set \
  --name <function_app_name> \
  --resource-group <resource-group> \
  --settings ALPHAVANTAGE_API_KEY=<your-api-key>

Setting up VS Code for MCP Development

This project includes a .vscode/mcp.json configuration file that helps you connect to your MCP endpoint during development. This file contains:

  1. Input definitions - Prompts for:

    • The Azure Functions MCP Extension System Key (stored securely)

    • Your Azure Functions App Name

  2. Server configurations:

    • remote-mcp-function - Connects to your deployed Azure Function using the inputs above

    • local-mcp-function - Connects to a locally running function on port 7071

This allows you to test your MCP tools directly from VS Code during development, either against your local function app or your deployed Azure instance.

Demo Agent

The agent directory contains an example of how to use this MCP endpoint with an AI agent using the Agno framework. You can use this as a starting point for your own financial analysis agent.

Infrastructure Code Attribution

The infrastructure code for this project was adapted from Azure-Samples/remote-mcp-functions-python, which provides a template for deploying Python functions as remote MCP tools on Azure.

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Provides comprehensive market data, fundamental analysis, and technical indicators through the AlphaVantage API. It enables users to fetch financial statements, stock prices, and market news with sentiment analysis for detailed financial research.
    9
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Provides financial data from Yahoo Finance via MCP, enabling AI agents to access real-time stock info, historical prices, financial statements, and market analysis.
    10
    13
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides 10 financial data tools (market data, economic indicators, news, insider trades, and calendars) via a single MCP layer, enabling any MCP-compatible LLM to access diverse financial data through a unified interface.
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI models to access real-time financial market data including stock quotes, fundamentals, daily prices, symbol search, and market status via the Alpha Vantage API. Works with any MCP-compatible client like Claude Desktop for natural language interaction.

View all related MCP servers

Related MCP Connectors

  • The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.

  • Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.

  • Alpha Vantage MCP — Stock market data, fundamentals, and earnings

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dsaad68/remote-mcp-azure-function'

If you have feedback or need assistance with the MCP directory API, please join our Discord server