MarketDataMcpServer
An MCP server that provides tools to get the latest market data from the most trusted data sources.
claude mcp add --transport stdio orestisstefanou-marketdatamcpserver go run ./cmd/server/main.go \ --env CACHE_TTL="3600" \ --env COIN_GECKO_API_KEY="your_coin_gecko_key" \ --env COIN_GECKO_CACHE_TTL="3600" \ --env ALPHA_VANTAGE_API_KEY="your_alpha_vantage_key" \ --env ALPHA_VANTAGE_CACHE_TTL="3600"
How to use
MarketDataMcpServer is an MCP server that aggregates and serves rich market data across multiple asset classes including stocks, ETFs, cryptocurrencies, and economic indicators. It exposes a suite of tools that let you search for tickers, retrieve detailed company information, track sector performance, obtain market news, and fetch time series data for economic indicators and commodities. Use these capabilities to power AI models with up-to-date financial data, perform scenario analysis, or build investment ideas based on real-time and historical market signals. The server interfaces with data providers like Alpha Vantage and CoinGecko to deliver fast and reliable financial insights.
How to install
Prerequisites:
- Go 1.21 or higher
- Git
- Make (for convenient build scripts)
- API keys for Alpha Vantage and CoinGecko
Installation steps:
- Clone the repository
git clone https://github.com/orestisstefanou-marketdatamcpserver/MarketDataMcpServer.git
cd MarketDataMcpServer
- Create a .env file with required keys (or export them in your environment)
# API Keys
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key
COIN_GECKO_API_KEY=your_coin_gecko_key
# Cache settings
CACHE_TTL=3600
ALPHA_VANTAGE_CACHE_TTL=3600
COIN_GECKO_CACHE_TTL=3600
- Install dependencies and build the server
make install
make build_mcp_server
- Run the MCP server (default port 8080)
make run_mcp_server
Additional notes
Tips:
- Ensure your API keys are valid and have access to the required endpoints from Alpha Vantage and CoinGecko.
- If you modify cache TTLs, restart the server to apply changes.
- The server is designed to be started in a network environment where port 8080 is accessible; adjust port settings if needed through your deployment configuration.
- If you encounter connectivity issues to data providers, verify environment variables and network access from the host.
- Explore the available tools to tailor data retrieval to your model’s needs (e.g., restricting to specific sectors or assets).
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go