Skip to main content
Glama
Tar-ive

MCP Bluesky Stock Sentiment

by Tar-ive

MCP Bluesky Stock Sentiment

Analyze recent Bluesky posts about stocks and return a concise sentiment summary using Cloudflare Workers AI — exposed as an MCP server you can connect to from any MCP‑compatible client.

What you get

  • Cloudflare Worker with Hono, serving an MCP endpoint at /mcp.

  • Tool: analyze_stock_posts — searches recent Bluesky posts, filters for stock‑related content, and runs sentiment via @cf/huggingface/distilbert-sst-2-int8.

  • Simple JSON metadata on / for quick health checks.

Quickstart

  • Prereqs: Node 18+, Cloudflare account, Wrangler auth (npx wrangler login).

  • Install: npm install

  • Dev: npm run dev (serves on http://localhost:8787)

  • Deploy: npm run deploy

  • Typegen: npm run cf-typegen (optional; syncs Worker bindings types)

MCP Endpoint

  • Local: http://localhost:8787/mcp

  • Prod: <your-workers-subdomain>.workers.dev/mcp

  • Server name: bluesky-stock-sentiment (see src/index.ts).

Available Tool

  • analyze_stock_posts

    • Input: { count?: number } — number of posts to analyze (1–10, default 2)

    • Behavior: Fetches recent posts from Bluesky’s public search API, filters to stock‑related text, analyzes each with Workers AI, and returns a textual summary (totals, percentages, average confidence, and per‑post details with author, likes, reposts, timestamp, and URI).

Config and Extensibility

  • Sentiment model: src/lib/sentiment.ts

    • Default: @cf/huggingface/distilbert-sst-2-int8

    • Swap to any Workers AI text‑classification model if you prefer.

  • Stock filtering: src/lib/stock-filter.ts

    • Update the keyword list to fine‑tune what counts as a “stock post”.

  • Bluesky search: src/lib/bluesky-api.ts

    • Uses the public unauthenticated search API and basic heuristics to avoid duplicates.

  • Firehose (optional): src/lib/firehose.ts

    • Example collector that connects to Bluesky’s firehose via WebSocket and filters in real time. This is not wired into the Worker route; use it as a reference for server/runtime environments that support outbound WebSocket connections.

Endpoints

  • GET / — returns service metadata (name, version, description, available tools).

  • ALL /mcp — MCP over HTTP transport (via mcp-lite). Point your MCP client here.

Notes

  • You must bind Workers AI in Wrangler (already configured in wrangler.jsonc under ai.binding = "AI").

  • Bluesky’s public search API may rate‑limit or change behavior; the tool is resilient but results vary over time.

Project Layout

  • src/index.ts — Hono app, MCP server wiring, routes.

  • src/mcp/tools.tsanalyze_stock_posts tool registration and handler.

  • src/lib/* — sentiment analysis, filtering, Bluesky integrations.

License

  • Provided as‑is; add a license if you plan to distribute.

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    F
    maintenance
    Enables comprehensive stock market analysis with portfolio management, technical indicators, dividend tracking, sector analysis, risk metrics, and price alerts. Provides real-time stock data, trend analysis, and investment insights through natural language interactions.
  • A
    license
    -
    quality
    D
    maintenance
    Provides comprehensive access to Yahoo Finance data, including historical stock prices, financial statements, and analyst recommendations. It is designed for deployment on Cloudflare Workers and supports multiple transport methods to integrate market data into LLM workflows.
    82
    MIT
  • F
    license
    -
    quality
    C
    maintenance
    Provides comprehensive stock intelligence and technical analysis by integrating Alpha Vantage and Finnhub data. It enables users to generate detailed research reports and retrieve real-time market metrics, indicators, and news sentiment.
  • A
    license
    A
    quality
    C
    maintenance
    Researches any company in ~10 seconds using 10 data sources. Returns structured reports with bull/bear verdict for stocks, crypto, and private companies.
    2
    12
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Search posts, profiles, feeds, threads, and trending topics on Bluesky.

  • Global stock research, ML forecasts, valuation signals, screeners & portfolio tracking in Claude

  • Real-time financial news for AI agents: search by ticker and source, with sentiment and entities.

View all MCP Connectors

Latest Blog Posts

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/Tar-ive/mcp-bluesky-stock-sentiment'

If you have feedback or need assistance with the MCP directory API, please join our Discord server