get_company_news
Pack: finnhub · Endpoint: https://gateway.pipeworx.io/finnhub/mcp
Get recent news articles about a company within a date range. Returns headline, summary, source, and URL. Example: get_company_news({ symbol: “AAPL”, from: “2024-01-01”, to: “2024-01-31”, _apiKey: “your-key” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | yes | Stock ticker symbol, e.g. “AAPL” |
from | string | yes | Start date in YYYY-MM-DD format, e.g. “2024-01-01” |
to | string | yes | End date in YYYY-MM-DD format, e.g. “2024-01-31” |
_apiKey | string | yes | Finnhub API key |
Example call
Arguments
{
"symbol": "AAPL",
"from": "2024-01-01",
"to": "2024-01-31",
"_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_company_news","arguments":{"symbol":"AAPL","from":"2024-01-01","to":"2024-01-31","_apiKey":"your-finnhub-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_company_news', {
"symbol": "AAPL",
"from": "2024-01-01",
"to": "2024-01-31",
"_apiKey": "your-finnhub-api-key"
});
More examples
{
"symbol": "MSFT",
"from": "2024-06-01",
"to": "2024-06-30",
"_apiKey": "your-finnhub-api-key"
}
Response shape
Always returns: count, articles
| Field | Type | Description |
|---|---|---|
count | integer | Total number of articles found |
articles | array | List of news articles (max 20) |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Total number of articles found"
},
"articles": {
"type": "array",
"items": {
"type": "object",
"properties": {
"headline": {
"type": "string",
"description": "Article headline"
},
"summary": {
"type": "string",
"description": "Article summary"
},
"source": {
"type": "string",
"description": "News source name"
},
"url": {
"type": "string",
"description": "Article URL"
},
"datetime": {
"type": "number",
"description": "Publication timestamp (Unix time)"
},
"category": {
"type": "string",
"description": "News category"
}
},
"required": [
"headline",
"summary",
"source",
"url",
"datetime",
"category"
]
},
"description": "List of news articles (max 20)"
}
},
"required": [
"count",
"articles"
]
}
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.