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

mcp-saham-news

v1.0.2

Published

MCP server for scraping Indonesian stock market news

Downloads

44

Readme

MCP Server - Indonesian Stock News Scraper

MCP (Model Context Protocol) server for scraping Indonesian stock market news from multiple sources.

Features

  • Multiple Sources: Scrapes from 4 major Indonesian financial news websites:

    • EmitenNews.com
    • CNBC Indonesia
    • Kontan
    • Bisnis Indonesia
  • MCP Compatible: Built with the official MCP SDK

  • Headless Chrome: Uses Puppeteer for reliable scraping

  • Type-Safe: Written in TypeScript with Zod validation

  • Keyword Filtering: Filter articles by keywords

  • Structured Logging: Pino logger for debugging

Installation

npm install -g mcp-saham-news

Configuration

The server requires Chrome/Chromium and uses environment variables:

# Required: Path to Chrome executable
export PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome

# Optional: Log level (debug, info, warn, error)
export LOG_LEVEL=info

Install Chrome (if not already installed)

# Ubuntu/Debian
sudo apt-get install chromium-browser

# macOS
brew install chromium

MCP Client Setup

KiloCode / Cline (VS Code)

Add to your MCP settings (global or workspace):

{
  "mcpServers": {
    "saham-news": {
      "command": "npx",
      "args": ["mcp-saham-news"],
      "env": {
        "PUPPETEER_EXECUTABLE_PATH": "/usr/bin/google-chrome",
        "LOG_LEVEL": "info"
      },
      "disabled": false,
      "alwaysAllow": ["scrape_stock_news"]
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "saham-news": {
      "command": "npx",
      "args": ["mcp-saham-news"],
      "env": {
        "PUPPETEER_EXECUTABLE_PATH": "/usr/bin/google-chrome"
      }
    }
  }
}

Alternatively, use the globally installed command:

{
  "mcpServers": {
    "saham-news": {
      "command": "mcp-saham-news",
      "env": {
        "PUPPETEER_EXECUTABLE_PATH": "/usr/bin/google-chrome"
      }
    }
  }
}

Restart Client

Restart Claude Desktop or VS Code to load the MCP server.

MCP Tool

scrape_stock_news

Scrape latest Indonesian stock market news.

Parameters:

  • source (required): News source - cnbc, kontan, bisnis, emitennews, or all
  • limit (optional): Number of articles to return (1-50, default: 10)
  • keywords (optional): Array of keywords to filter articles
  • includeContent (optional): Fetch full article body (default: false)

Example:

{
  "source": "emitennews",
  "limit": 5,
  "keywords": ["BBRI", "BBCA"]
}

Response:

[
  {
    "title": "Article title",
    "url": "https://...",
    "source": "EmitenNews.com",
    "publishedAt": "2026-02-14T02:00:00.000Z",
    "summary": "Optional summary",
    "imageUrl": "https://...",
    "relativeDateText": "4 jam yang lalu"
  }
]

Development

Build the Project

npm run build

Run in Development Mode

npm run dev

Test Individual Scrapers

# Test EmitenNews scraper
npx tsx src/scrapers/emitennews.ts

# Test CNBC scraper
npx tsx src/scrapers/cnbc-indonesia.ts

Project Structure

src/
├── index.ts              # MCP server entry point
├── types/index.ts        # TypeScript type definitions
├── browser-manager.ts    # Puppeteer browser manager
├── scrapers/
│   ├── base.ts           # Abstract base scraper
│   ├── emiteanews.ts
│   ├── cnbc-indonesia.ts
│   ├── kontan.ts
│   └── bisnis-indonesia.ts
└── tools/
    └── scrape-news.ts    # MCP tool implementation

License

ISC