Skip to main content
Glama
sellthenews-mcp

sellthenews-mcp

by swl007007

sellthenews-mcp

A read-only MCP (Model Context Protocol) server that wraps sellthenews.org API endpoints, making financial news and options data available as tools for LLMs like Claude.

Architecture

sellthenews.org API  →  Adapters  →  Services  →  MCP Tools & Resources

Four layers, each with one job:

Layer

What it does

Files

Domain

Defines TypeScript types for all data shapes

src/domain/*.types.ts

Adapters

Fetch raw JSON from upstream APIs (no processing)

src/adapters/*.adapters.ts

Services

Normalize raw data into clean domain objects

src/services/*.service.ts

MCP

Expose tools and resources to LLM clients

src/mcp/*.tools.ts

Data flows left to right: the MCP layer calls services, services call adapters, adapters call the HTTP client.

Related MCP server: OpenInsider MCP

Upstream APIs

Endpoint

Description

GET /api/live/recent

Latest news feed with pinned stories

GET /api/wsb/latest

Wall Street Bets daily analysis snapshot

GET /api/search

Keyword-based news search

GET /api/options/chain

Options chain, GEX, and greek exposure

MCP Tools

Tool

Description

Key inputs

get_recent_news

Latest news stories

limit, offset, lang, sources, marketOnly

get_wsb_snapshot

WSB daily analysis

lang

search_news

Search news by keyword

query, limit, offset, lang, sources, sort

get_options_chain

Full options chain for a ticker

ticker, expiration, greeks

get_options_summary

Concise options exposure summary

ticker

MCP Resources

URI

Description

sellthenews://news/recent

Latest news feed (ambient context)

sellthenews://wsb/latest

Latest WSB snapshot (ambient context)

Setup

npm install
npm run build

Run Locally

npm start

The server runs over stdio, so it is meant to be launched by an MCP client such as Claude Desktop or an MCP inspector rather than opened in a browser.

For private single-user compatibility testing, the HTTP client can also read SELLTHENEWS_USER_AGENT, SELLTHENEWS_COOKIE, SELLTHENEWS_ACCEPT_LANGUAGE, and SELLTHENEWS_REFERER from the environment and forward them as request headers when present.

Usage with Claude Desktop

Add this to your Claude Desktop MCP config file. On macOS it's at ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows it's at %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "sellthenews": {
      "command": "node",
      "args": ["/REPLACE/WITH/YOUR/ACTUAL/PATH/sellthenews_MCP/dist/index.js"]
    }
  }
}

Important: Replace the path above with the actual absolute path to dist/index.js on your machine. For example, on Windows it might be C:\\Users\\yourname\\Desktop\\sellthenews_MCP\\dist\\index.js.

Project Structure

src/
  domain/
    shared.types.ts       # Common types (SourceInfo, TickerMention, etc.)
    news.types.ts         # News domain: raw API types + clean domain types
    options.types.ts      # Options domain: raw API types + clean domain types
  infra/
    http-client.ts        # HTTP client wrapping fetch()
  adapters/
    news.adapters.ts      # 3 news adapters (live/recent, wsb, search)
    options.adapters.ts   # 1 options adapter (options/chain)
  services/
    news.service.ts       # News normalization logic
    options.service.ts    # Options normalization logic
  mcp/
    news.tools.ts         # News MCP tools + resources + Zod schemas
    options.tools.ts      # Options MCP tools + Zod schemas
  index.ts                # Entry point: wires layers, starts server

Current Status

Stage 2A is complete. The repository now performs real upstream GET requests, normalizes raw responses into domain objects, and exposes live MCP tools/resources that return consistent JSON text.

Implemented now:

  1. HttpClient.get() with URL building, timeout handling, JSON parsing, and clearer error messages

  2. Real adapters for all four identified sellthenews endpoints

  3. Service-layer normalization for news feeds, WSB snapshots, options chains, and options summaries

  4. Live MCP tool and resource handlers wired to the service layer

  5. Optional env-driven compatibility headers for private single-user testing when plain server-side requests hit upstream protection

Still pending:

  1. Automated tests for adapters, services, and MCP smoke coverage

  2. Better operational hardening if upstream failures or Cloudflare issues show up in practice

  3. Stage 3 concerns such as caching, rate limiting, and production logging

Quick Smoke Check

  1. Run npm run build

  2. Run npm start

  3. Connect the server from Claude Desktop or an MCP inspector

  4. Call get_recent_news with { "limit": 2 } or get_options_summary with { "ticker": "MU" }

If upstream access works, the response should be pretty-printed JSON instead of placeholder text.

If upstream blocks plain server-side requests, retry your local run with SELLTHENEWS_USER_AGENT, SELLTHENEWS_COOKIE, SELLTHENEWS_ACCEPT_LANGUAGE, and SELLTHENEWS_REFERER set in the environment as needed.

Available Tools

5 tools
get_options_chainC

Get full options chain data for a ticker, including GEX, OI, and volume by strike

NameRequiredDescriptionDefault
tickerYesStock ticker symbol, e.g. 'MU', 'AAPL', 'TSLA'
expirationNoExpiration date filter, e.g. '2026-04-17'
greeksNoGreek to analyze, e.g. 'gamma'
get_options_summaryB

Get a concise options exposure summary for a ticker (no per-strike breakdown)

NameRequiredDescriptionDefault
tickerYesStock ticker symbol, e.g. 'MU', 'AAPL', 'TSLA'
get_recent_newsB

Fetch the latest news stories from sellthenews.org, including editorially pinned stories

NameRequiredDescriptionDefault
limitNoMax number of stories to return (default: 15)
offsetNoNumber of stories to skip for pagination
langNoLanguage code, e.g. 'en' or 'zh'
sourcesNoSource filter as a comma-separated string or string array
marketOnlyNoSet to true to show only market-related news
get_wsb_snapshotB

Get the latest Wall Street Bets daily analysis snapshot

NameRequiredDescriptionDefault
langNoLanguage code, e.g. 'en' or 'zh'
search_newsC

Search news articles by keyword across multiple sources

NameRequiredDescriptionDefault
queryYesKeyword to search for in news articles
limitNoMax number of results (default: 15)
offsetNoNumber of results to skip for pagination
langNoLanguage code, e.g. 'en' or 'zh'
sourcesNoSource filter as a comma-separated string or string array
sortNoSort order, e.g. 'time'

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.1.0
    • First observedget_options_chain
    • First observedget_options_summary
    • First observedget_recent_news
    • First observedget_wsb_snapshot
    • First observedsearch_news

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation4/5

Most tools have distinct purposes: options chain vs. summary, recent news vs. search, and WSB snapshot. However, 'get_recent_news' and 'search_news' could overlap if an agent wants recent news on a specific topic, as both handle news retrieval but with different approaches (time-based vs. keyword-based).

Naming Consistency5/5

All tools follow a consistent 'verb_noun' pattern with 'get_' or 'search_' prefixes, using snake_case uniformly. This predictable naming makes it easy for agents to understand and select tools without confusion.

Tool Count5/5

With 5 tools, this server is well-scoped for its financial/news domain. Each tool serves a clear, non-redundant function, covering options data, news retrieval, and WSB analysis, which is appropriate for a focused set of operations.

Completeness4/5

The toolset covers key areas like options analysis and news retrieval effectively, with no obvious dead ends. A minor gap is the lack of historical data tools (e.g., for options or news trends), but agents can still perform core tasks with the provided tools.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A read-only MCP server that provides access to Charles Schwab account data and market information, including portfolio positions, real-time quotes, options chains, price history, and account balances through AI assistants.
    9
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that exposes 16 free investment-research signals (insider trades, SEC filings, short data, and live quotes) to any MCP-compatible LLM.
    63 npm
    103
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Comprehensive MCP server for real-time stock, cryptocurrency, options, and fundamental analysis, including SEC filings and insider trading data.
    26
    9 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A read-only MCP server for stock quotes, Coinbase prices, and Polymarket markets, supporting tools like get_stock_quote, get_coinbase_spot_price, and search_polymarket_markets.
    68 npm
    1
    MIT