drio
Open app

MCP Server for Stock Market Analysis

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Server for Stock Market Analysis is a project that implements a Model Context Protocol (MCP) server designed to provide real-time stock price data and calculate key technical indicators for stock market analysis using the AlphaVantage API.

To use the MCP Server, you need to install the required dependencies, obtain an AlphaVantage API key, clone the repository, set up environment variables, and run the server using Python.

  • Fetch real-time stock data using AlphaVantage API - Calculate moving averages (short-term & long-term) - Detect trend crossovers (Golden Cross & Death Cross) - Compute Relative Strength Index (RSI) - Expose MCP tools for seamless AI integration - Future extensibility for backtesting and trading platform integration
  1. Analyzing stock trends using moving averages.
  2. Detecting market signals through trend crossovers.
  3. Assessing stock momentum with RSI calculations.

Add to your AI client

Use these steps to connect MCP Server for Stock Market Analysis in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-alphavantage-hasan-syed25": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-alphavantage-hasan-syed25"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-alphavantage-hasan-syed25": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-alphavantage-hasan-syed25"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-alphavantage-hasan-syed25": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-alphavantage-hasan-syed25"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-alphavantage-hasan-syed25": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-alphavantage-hasan-syed25"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-alphavantage-hasan-syed25": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-alphavantage-hasan-syed25"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-alphavantage-hasan-syed25": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-alphavantage-hasan-syed25"
      ]
    }
  }
}

FAQ

**What programming language is used?**

The server is implemented in Python.

**Do I need an API key?**

Yes, you need to sign up at AlphaVantage to obtain an API key.

**Can I extend the server's functionality?**

Yes, the server is designed for future enhancements, including additional technical indicators and trading platform integration.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2562,"uuid":"2f555338-d4c7-450b-9d4c-1c410b23718e","name":"MCP-Server-AlphaVantage","title":"MCP Server for Stock Market Analysis","description":"","avatar_url":"https://avatars.githubusercontent.com/u/141028228?v=4","created_at":"2025-03-13T08:50:53.882Z","updated_at":"2025-03-13T09:10:28.442Z","status":"created","author_name":"Hasan-Syed25","author_avatar_url":"https://avatars.githubusercontent.com/u/141028228?v=4","tags":"stock-analysis,financial-tools,MCP-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/Hasan-Syed25/MCP-Server-AlphaVantage","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-11 17:20:19\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]