MCP Bluesky Stock Sentiment
Analyzes recent Bluesky posts about stocks by fetching content from Bluesky's public search API, filtering for stock-related posts, and providing sentiment analysis summaries with post details including author, engagement metrics, and timestamps
Uses Cloudflare Workers AI for sentiment analysis of social media posts, specifically leveraging the DistilBERT model to classify text sentiment and generate confidence scores for stock-related content analysis
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Bluesky Stock Sentiment
An MCP server on Cloudflare Workers that pulls recent stock-related posts from Bluesky, scores their sentiment with Workers AI, and returns a concise summary to any MCP-compatible client.
π 3rd place at World Wild Web MCP Server Hack Night β built with Cloudflare and Fiberplane. (announcement)

How it works

An MCP client (e.g. Claude Desktop) calls the
analyze_stock_poststool over HTTP at/mcp.The Worker (Hono +
mcp-lite) searches Bluesky's public API for recent posts.Posts are filtered down to stock-related content with keyword/regex heuristics.
Each post is classified by Workers AI (
@cf/huggingface/distilbert-sst-2-int8).The tool returns totals, percentages, average confidence, and per-post details.
The Mermaid source for the diagram lives in docs/architecture.md.
Related MCP server: Yahoo Finance MCP Server
Quickstart
Prerequisites: Node 18+, a Cloudflare account, and Wrangler auth (npx wrangler login).
npm install
npm run dev # http://localhost:8787
npm run deploy # deploy to Cloudflare Workers
npm run cf-typegen # optional: regenerate Worker binding typesWorkers AI is already bound in wrangler.jsonc (ai.binding = "AI").
Connecting a client
Environment | MCP endpoint |
Local |
|
Production |
|
The server registers as bluesky-stock-sentiment. Example prompt:
Use the analyze_stock_posts tool to get recent stock posts from Bluesky and analyze their sentiment.
Tool reference
analyze_stock_posts
Input | Type | Default | Description |
| number (1β10) |
| Number of recent stock posts to analyze |
Returns a text summary: positive/negative counts and percentages, average confidence, and for each post the label, confidence, author, likes, reposts, timestamp, and URI.
HTTP endpoints
Method | Path | Description |
|
| Service metadata (name, version, description, tools) |
|
| MCP over HTTP ( |
Customizing
What | Where | Notes |
Sentiment model |
| Swap for any Workers AI text-classification model |
Stock keywords |
| Tune what counts as a "stock post" |
Bluesky search |
| Public unauthenticated search with de-duplication |
Firehose (reference) |
| Real-time WebSocket collector; not wired into the Worker |
Project layout
src/
βββ index.ts # Hono app, MCP server wiring, routes
βββ mcp/tools.ts # analyze_stock_posts registration + handler
βββ lib/ # sentiment, stock filter, Bluesky search, firehose
docs/
βββ architecture.md # Mermaid architecture diagram
βββ images/ # README screenshotsNotes
Bluesky's public search API may rate-limit or change; results vary over time.
Sentiment output is a toy signal, not financial advice.
Built at

License
Provided as-is; add a license if you plan to distribute.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Stock scores (0-100) and signals for any US stock, with full AI analysis for 83 AI-related names.
Trade ideas, author track records and sentiment from X, YouTube, Reddit, Substack; earnings calls
Analyze stocks with summaries, price targets, and analyst recommendations. Track SEC filings, diviβ¦
AI stock intelligence: prices, fundamentals, technicals, news, macro regime, and sector signals.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.1-
- AlicenseNot gradedqualityDmaintenanceProvides 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.94 npmMIT
- FlicenseNot gradedqualityCmaintenanceProvides 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.-
- AlicenseBqualityDmaintenanceProvides AI-friendly stock analysis using Yahoo Finance data, including technical indicators, financial metrics, and Japanese reports.132 npm1ISC