finance-mcp
The finance-mcp server provides real-time and historical stock and cryptocurrency market data, along with technical analysis tools, for use by LLMs via the Model Context Protocol.
Get a single stock/ETF quote: Retrieve the latest price, day change, percent change, and currency for any ticker symbol (e.g.,
AAPL,SPY).Get multiple stock quotes: Fetch batch quotes for several tickers concurrently.
Get historical OHLCV candles: Access historical open/high/low/close/volume data for a stock or ETF over a configurable period (e.g.,
1d,1mo,1y,max) and interval (e.g.,1m,1d,1wk).Get cryptocurrency prices: Retrieve the latest price and 24-hour change for any cryptocurrency using its CoinGecko slug (e.g.,
bitcoin,ethereum) in a chosen fiat currency (default: USD).Analyze stocks with technical indicators: Compute SMA(20), SMA(50), EMA(20), and RSI(14) over a configurable lookback period (default: 6 months), returned alongside the latest close price.
Compare assets: Rank a mixed list of stocks and cryptocurrencies by percentage move to identify best and worst performers.
Provides real-time cryptocurrency quotes and market data (e.g., price, 24h change) via CoinGecko for Bitcoin and other coins.
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., "@finance-mcpWhat's the RSI and moving averages for MSFT?"
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.
finance-mcp
Real-time stock & crypto market data for LLMs, over the Model Context Protocol.
finance-mcp is an MCP server that lets any MCP-compatible client (Claude Desktop,
Cline, Continue, …) pull live equity and crypto quotes, historical candles, and
common technical indicators — so the model can reason over real market data instead
of hallucinating it.
┌──────────────┐ MCP (stdio) ┌───────────────┐ HTTP ┌──────────────┐
│ LLM client │ ◀─────────────▶ │ finance-mcp │ ◀──────▶ │ yfinance │
│ (Claude etc.)│ tool calls │ server │ │ CoinGecko │
└──────────────┘ └───────────────┘ └──────────────┘Demo

The session above is illustrative; the JSON matches the real shape returned by
compare_assets. Regenerate it any time withpython scripts/make_demo.py.
Related MCP server: Financial Data MCP Server
Features
get_stock_quote— latest price, day change, % change for any ticker (AAPL,SPY, …)get_quotes— batch quotes for many tickers, fetched concurrentlyget_stock_history— OHLCV candles over a configurable period/intervalget_crypto_price— live crypto quotes via CoinGecko (no API key needed)analyze_stock— SMA(20/50), EMA(20), and RSI(14) computed in-processcompare_assets— rank a mix of stocks and crypto by their % moveProvider layer isolates each upstream API behind a small, fully unit-tested surface
Async throughout; blocking provider I/O is offloaded to worker threads
Install
git clone https://github.com/porkornrawee/finance-mcp.git
cd finance-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"Use with Claude Desktop
Add this to your claude_desktop_config.json (see examples/):
{
"mcpServers": {
"finance": {
"command": "finance-mcp",
"args": []
}
}
}Restart Claude Desktop, then ask things like:
"What's the RSI on NVDA over the last 6 months, and how does it compare to Bitcoin's 24h move?"
Tools
Tool | Arguments | Returns |
|
| price, change, %, currency |
|
| list of quotes (per-symbol errors isolated) |
|
| list of OHLCV candles |
|
| price, 24h change |
|
| latest close + SMA/EMA/RSI |
|
| assets ranked by % move + best/worst |
Note: crypto uses CoinGecko ids (the slug), e.g.
bitcoin, notBTC.
Development
ruff check . # lint
mypy src # type-check
pytest -q # tests (network-free; CoinGecko is mocked with respx)The indicator math in indicators.py is intentionally
pure and dependency-free so it can be tested deterministically without hitting any API.
Disclaimer
This project is for informational and educational purposes only. It is not financial advice. Market data is provided by third parties on a best-effort basis and may be delayed or inaccurate.
License
MIT © porkornrawee — see LICENSE.
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/porkornrawee/finance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server