# Finance MCP: Stock, ETF & Crypto Prices, Returns, Risk (`rasareka/finance-mcp`) Actor

MCP server for AI agents: stock, ETF, index, FX and crypto data from Yahoo Finance. Ticker search, snapshots with trailing returns and volatility, price history with stats, and multi-asset performance and correlation comparison.

- **URL**: https://apify.com/rasareka/finance-mcp.md
- **Developed by:** [Rasa Reka](https://apify.com/rasareka) (community)
- **Categories:** MCP servers, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 symbol snapshots

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Finance MCP: Stock, ETF & Crypto Prices, Returns, Risk

Give your AI agent live **market data** for stocks, ETFs, indices, currencies and crypto from Yahoo Finance: find tickers, get a **snapshot with trailing returns, volatility, drawdown and trend**, pull **price history with stats**, and **compare performance and correlation** across up to 10 assets. Works with Claude Desktop, Claude Code, Cursor, VS Code, n8n and any MCP client.

### Tools

| Tool | What it does | Price |
|---|---|---|
| `search_tickers` | Find symbols by company, fund, index, currency or crypto name, with type, exchange, sector and industry. | $0.002 / call |
| `stock_snapshot` | 1–10 symbols: price, day change, volume, 52-week range and distance from the high, returns for 1w / 1m / 3m / 6m / YTD / 1y / 2y, 1-year volatility and max drawdown, 50/200-day averages with a trend label, dividends in the last 12 months. | $0.005 per symbol |
| `price_history` | OHLCV bars (adjusted close, dividends, splits) for any range or date window, plus period return, high/low, annualized volatility, max drawdown, best/worst period, share of up periods and moving averages. | $0.01 / call |
| `compare_performance` | 2–10 symbols over a period: return, volatility, max drawdown, return per unit of risk, ranking, and correlation matrix of daily returns. | $0.02 / call |

Unknown symbols and errors are **never charged**.

### Who it is for

- **Investors and traders using AI assistants:** quick, numbers-backed answers instead of guesses from training data.
- **Analysts and newsletter writers:** performance tables and comparisons in one call.
- **Builders of finance agents:** a clean MCP data layer without managing an API key.

Coverage: US and global stocks (e.g. `AAPL`, `SAP.DE`, `1155.KL`), ETFs (`SPY`, `QQQ`), indices (`^GSPC`, `^IXIC`, `^KLSE`), currencies (`EURUSD=X`), crypto (`BTC-USD`), futures (`GC=F`).

### Example prompts

- "How have NVDA, AMD and the S\&P 500 performed this year, and how correlated are they?"
- "Give me a snapshot of Maybank, CIMB and Public Bank: returns, volatility and dividends."
- "Pull 5 years of weekly prices for QQQ and tell me the worst drawdown."
- "Find the ticker for Novo Nordisk and show its 52-week range."

### Connect

MCP endpoint (Streamable HTTP):

```
https://rasareka--finance-mcp.apify.actor/mcp
```

Authenticate with your Apify API token (Console → Settings → API & Integrations) as a Bearer header.

**Claude Desktop / Cursor / VS Code:**

```json
{
  "mcpServers": {
    "finance": {
      "url": "https://rasareka--finance-mcp.apify.actor/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

stdio-only clients:

```json
{
  "mcpServers": {
    "finance": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://rasareka--finance-mcp.apify.actor/mcp", "--header", "Authorization: Bearer YOUR_APIFY_TOKEN"]
    }
  }
}
```

**Claude Code:**

```bash
claude mcp add --transport http finance https://rasareka--finance-mcp.apify.actor/mcp --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Or add the Actor `rasareka/finance-mcp` to the Apify MCP server at `mcp.apify.com`.

### Pricing

Pay per event: $0.002 per ticker search, $0.005 per symbol snapshot, $0.01 per price history, $0.02 per comparison. A typical research session costs a few cents. Set a spending limit in Apify and the server stops charging when it is reached.

### Limits (honest)

- Data comes from Yahoo Finance's public chart and search endpoints and may be delayed (typically 15 minutes for many exchanges).
- Fundamentals (P/E, earnings, balance sheets) are not included.
- Intraday bars are limited by Yahoo (1-minute data for about the last 30 days).
- Returns are in each asset's own currency; no FX conversion.

### Disclaimer

This server provides market data and simple statistics only. **It is not investment advice**, and results should not be the sole basis for any financial decision.

### FAQ

**Do I need a Yahoo or brokerage account?** No. Only an Apify account (free).

**Is it legal?** Only publicly available market data is read, without login, with polite pacing. You are responsible for how you use it and for any redistribution rules that apply to market data in your use case.

**Does a normal run do anything?** A normal (non-Standby) run does a quick self-test and exits. Use the Standby URL above for MCP.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("rasareka/finance-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("rasareka/finance-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call rasareka/finance-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rasareka/finance-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2g9b5ZGaIFKRHGwcF/builds/zXHhTTHcqPo4AIHPi/openapi.json
