Stock-MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Stock-MCPget daily OHLCV bars for AAPL for last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Massive MCP Server (CSV + Charts)
Standalone FastMCP server that exposes Massive (Polygon) market data to Claude and other MCP clients. Chart tools return chart-ready CSV; lookup tools return compact JSON.
Tools
CSV / chart tools
Tool | Description |
| OHLCV bars for a stock via REST API |
| OHLCV bars for an options contract via REST API |
| OHLCV bars from Massive Flat Files (S3 bulk data) |
CSV columns: datetime,open,high,low,close,volume,transactions
Research tools (JSON)
Tool | Description |
| Find symbols by name or ticker |
| Company / instrument metadata |
| Latest price snapshot (paid plan) |
| Options chain contract lookup |
| Full chain snapshot (paid plan) |
| Flat file catalog and S3 listing |
| Top gainers or losers (paid plan) |
Related MCP server: Massive.com MCP Server
Local Setup
cd Stock-MCP
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .envEdit .env:
MASSIVE_API_KEY=your_rest_api_key
MASSIVE_S3_ACCESS_KEY=your_flat_files_access_key # optional, for flat files
MASSIVE_S3_SECRET_KEY=your_flat_files_secret_keyRun locally:
fastmcp run app/mcp_server.py --transport http --host 127.0.0.1 --port 8082MCP endpoint:
http://127.0.0.1:8082/mcpDocker on Linux VPS
cp .env.example .env
# edit .env
docker compose -f deploy/docker-compose.yml up -d --buildThe service binds to localhost:
http://127.0.0.1:8082/mcpCloudflare Tunnel (optional)
Expose the MCP server to Claude Projects without opening a public port on the VPS.
Create a remotely managed tunnel in Cloudflare Zero Trust.
Set
CLOUDFLARE_TUNNEL_TOKENin.env.Add a public hostname route:
mcp-stocks.yourdomain.com→http://stock-mcp:8080Start with the tunnel profile:
docker compose -f deploy/docker-compose.yml --profile tunnel up -d --buildClaude remote MCP URL:
https://mcp-stocks.yourdomain.com/mcpClaude Integration
Deploy the MCP server (local, VPS, or via Cloudflare Tunnel).
In a Claude Project, add a remote MCP server with your
/mcpURL.Add to your project instructions:
For charts, call
get_stock_bars_csvorget_flat_file_bars_csvand parse thecsvfield. Always mentiontruncatedand the date range in your analysis.
Environment Variables
Variable | Required | Description |
| Yes | REST API key |
| Flat files only | S3 access key from Massive dashboard |
| Flat files only | S3 secret key |
| No | Row cap per CSV tool call (default 5000) |
| No | Host port for Docker (default 8082) |
Testing
pytest tests/ -vOptional integration tests (requires real API keys in .env):
RUN_INTEGRATION=1 pytest tests/test_integration.py -vSecurity
Keep
.envoff Git; usechmod 600 .envon the VPS.Bind to
127.0.0.1unless behind Cloudflare Tunnel or nginx.Do not log API keys.
Consider Cloudflare WAF rate limiting on the public MCP hostname.
API Reference Docs
Rest_API_docs.md— Massive REST APIflat_files_docs.md— Massive Flat Files (S3)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/Plydeen/Stock-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server