npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@streamflux/mcp-server

v0.2.1

Published

StreamFlux MCP Server - Connect AI agents to real-time data streams

Downloads

294

Readme

@streamflux/mcp-server

Connect AI agents to real-time data streams via MCP (Model Context Protocol)

Let your AI assistant monitor, analyze, and interact with real-time data.

Features

Core Tools

  • list_topics - List all active topics in your StreamFlux server
  • get_stats - Get server statistics (connections, throughput, uptime)
  • publish_event - Publish events to any topic
  • subscribe_sample - Sample messages from a topic for analysis
  • create_window - Create time-based windows for event aggregation
  • health_check - Check server connectivity

AI-Native Tools

  • analyze_stream - Analyze topic patterns, message frequency, and health status
  • detect_anomalies - Monitor topics for unusual activity (spikes, drops)
  • broadcast_ai_event - Publish AI-tagged events with confidence scores
  • get_stream_summary - Get AI-friendly overview of all streams with suggested actions

Installation

npm install -g @streamflux/mcp-server
# or
pnpm add -g @streamflux/mcp-server

Usage with Cursor

Add to your Cursor MCP settings (~/.cursor/mcp.json):

{
  "mcpServers": {
    "streamflux": {
      "command": "npx",
      "args": ["-y", "@streamflux/mcp-server"],
      "env": {
        "STREAMFLUX_URL": "https://api.streamflux.dev",
        "STREAMFLUX_API_KEY": "your-api-key"
      }
    }
  }
}

Or with local development server:

{
  "mcpServers": {
    "streamflux": {
      "command": "npx",
      "args": ["-y", "@streamflux/mcp-server"],
      "env": {
        "STREAMFLUX_URL": "http://localhost:8080",
        "STREAMFLUX_API_KEY": "your-api-key"
      }
    }
  }
}

Usage with Claude Desktop

Add to your Claude Desktop config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "streamflux": {
      "command": "npx",
      "args": ["-y", "@streamflux/mcp-server"],
      "env": {
        "STREAMFLUX_URL": "https://api.streamflux.dev",
        "STREAMFLUX_API_KEY": "your-api-key"
      }
    }
  }
}

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | STREAMFLUX_URL | StreamFlux server URL | https://api.streamflux.dev | | STREAMFLUX_API_KEY | API key for authentication | (optional) |

Example Prompts

Once configured, you can ask your AI assistant:

Basic Operations

"List all active topics in StreamFlux"

"Publish a test event to the 'orders' topic"

"Show me the server statistics"

AI-Native Operations

"Analyze the orders stream - is it healthy?"

"Detect any anomalies in my data streams"

"Broadcast an alert saying 'High CPU detected' to the notifications topic"

"Give me a summary of all streams with recommended actions"

Resources

The MCP server also exposes topics as resources. You can ask:

"What resources are available from StreamFlux?"

Each topic is exposed as a resource with URI format: streamflux://topics/{topic-name}

Development

# Install dependencies
pnpm install

# Run in development mode
pnpm dev

# Build for production
pnpm build

License

MIT