get_quote
Pack: finnhub · Endpoint: https://gateway.pipeworx.io/finnhub/mcp
Get a real-time stock quote including current price, change, and volume. Example: get_quote({ symbol: “AAPL”, _apiKey: “your-key” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | yes | Stock ticker symbol, e.g. “AAPL”, “MSFT”, “TSLA” |
_apiKey | string | yes | Finnhub API key (get one free at finnhub.io) |
Example call
Arguments
{
"symbol": "AAPL",
"_apiKey": "your-finnhub-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/finnhub/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_quote","arguments":{"symbol":"AAPL","_apiKey":"your-finnhub-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_quote', {
"symbol": "AAPL",
"_apiKey": "your-finnhub-api-key"
});
More examples
{
"symbol": "TSLA",
"_apiKey": "your-finnhub-api-key"
}
Response shape
Always returns: symbol, current_price, change, percent_change, high, low, open, previous_close, timestamp
| Field | Type | Description |
|---|---|---|
symbol | string | Stock ticker symbol |
current_price | number | Current trading price |
change | number | Absolute price change |
percent_change | number | Percentage price change |
high | number | Day high price |
low | number | Day low price |
open | number | Opening price |
previous_close | number | Previous close price |
timestamp | number | Quote timestamp (Unix time) |
Full JSON Schema
{
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "Stock ticker symbol"
},
"current_price": {
"type": "number",
"description": "Current trading price"
},
"change": {
"type": "number",
"description": "Absolute price change"
},
"percent_change": {
"type": "number",
"description": "Percentage price change"
},
"high": {
"type": "number",
"description": "Day high price"
},
"low": {
"type": "number",
"description": "Day low price"
},
"open": {
"type": "number",
"description": "Opening price"
},
"previous_close": {
"type": "number",
"description": "Previous close price"
},
"timestamp": {
"type": "number",
"description": "Quote timestamp (Unix time)"
}
},
"required": [
"symbol",
"current_price",
"change",
"percent_change",
"high",
"low",
"open",
"previous_close",
"timestamp"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"finnhub": {
"url": "https://gateway.pipeworx.io/finnhub/mcp"
}
}
}
See Getting Started for client-specific install steps.