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

@knowledgesdk/mcp

v0.2.10

Published

Official KnowledgeSDK Model Context Protocol Server - AI assistant integration for web knowledge extraction

Downloads

21

Readme

KnowledgeSDK MCP Server

What is KnowledgeSDK?

KnowledgeSDK is an API that turns any website into structured, searchable knowledge — built for developers, AI agents, and data pipelines.

  • 🔍 Extract — Crawl & extract structured knowledge from any website
  • 📄 Scrape — Convert any URL to clean Markdown
  • 🏢 Classify — AI-powered business classification from a URL
  • 📸 Screenshot — Full-page screenshots of any website
  • 🗺️ Sitemap — Discover all URLs on a domain
  • 🧠 Search — Semantic search across your extracted knowledge base

Get your API key

Tools

| Tool | Description | |---|---| | extract_knowledge | Extract structured knowledge from any website URL. Returns business classification, product features, pricing, and key insights. | | scrape_page | Scrape any webpage and return clean markdown content. Perfect for reading documentation, articles, or any web content. | | classify_business | Classify a business from its website URL. Returns type, industry, target audience, value proposition, and key insights. | | get_sitemap | Discover all pages on a website via its sitemap. Returns a list of URLs for further processing. | | take_screenshot | Take a full-page screenshot of any URL. Returns a base64-encoded PNG image. | | search_knowledge | Search your extracted knowledge base using natural language. Returns relevant knowledge items ranked by semantic similarity. |

Requirements


Setup with Claude Desktop

  1. Open your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the following to the mcpServers section:

{
  "mcpServers": {
    "knowledgesdk": {
      "command": "npx",
      "args": ["-y", "@knowledgesdk/mcp"],
      "env": {
        "KNOWLEDGESDK_API_KEY": "sk_ks_your_key_here"
      }
    }
  }
}
  1. Restart Claude Desktop.

You should now see the KnowledgeSDK tools available in your Claude Desktop conversations.


Setup with Cursor

  1. Open Cursor Settings → Features → MCP Servers.
  2. Click + Add new MCP server.
  3. Choose stdio as the transport type.
  4. Enter the following command:
npx -y @knowledgesdk/mcp
  1. Add the environment variable:
KNOWLEDGESDK_API_KEY=sk_ks_your_key_here

Alternatively, edit ~/.cursor/mcp.json directly:

{
  "mcpServers": {
    "knowledgesdk": {
      "command": "npx",
      "args": ["-y", "@knowledgesdk/mcp"],
      "env": {
        "KNOWLEDGESDK_API_KEY": "sk_ks_your_key_here"
      }
    }
  }
}

Setup with Windsurf

  1. Open Windsurf Settings → Cascade → MCP Servers.
  2. Click Add Server and select Command.
  3. Configure as follows:
{
  "mcpServers": {
    "knowledgesdk": {
      "command": "npx",
      "args": ["-y", "@knowledgesdk/mcp"],
      "env": {
        "KNOWLEDGESDK_API_KEY": "sk_ks_your_key_here"
      }
    }
  }
}

Or edit ~/.codeium/windsurf/mcp_config.json directly with the same JSON block above.


Environment Variables

| Variable | Required | Description | |---|---|---| | KNOWLEDGESDK_API_KEY | Yes | Your KnowledgeSDK API key | | KNOWLEDGESDK_BASE_URL | No | Override the API base URL (default: https://api.knowledgesdk.com) |


Example Usage

Once configured, you can ask your AI assistant:

  • "Extract knowledge from https://stripe.com"
  • "Scrape the page at https://docs.stripe.com/get-started"
  • "Classify the business at https://linear.app"
  • "Get the sitemap for https://vercel.com"
  • "Take a screenshot of https://github.com"
  • "Search my knowledge base for 'pricing plans'"

Development

# Install dependencies
npm install

# Build TypeScript
npm run build

# Test the stdio server locally (requires KNOWLEDGESDK_API_KEY)
KNOWLEDGESDK_API_KEY=sk_ks_your_key npm run test:local

Documentation

Full API reference → https://knowledgesdk.com/docs

Contributing

We ❤️ PRs!

  1. Forkgit checkout -b feat/awesome
  2. Add tests & docs
  3. PR against main

License

MIT