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

@anysiteio/mcp

v2.0.0

Published

MCP server for AnySite — five meta-tools (discover / execute / get_page / query_cache / export_data) over 30+ data sources including LinkedIn, Instagram, Twitter/X, Reddit, YouTube, SEC, Y Combinator, DuckDuckGo and a universal web scraper.

Readme

Anysite MCP Server

The entire web is your database. Your AI assistant is the query interface.

A Model Context Protocol server that lets Claude, Cursor, ChatGPT, and any MCP client query structured data from LinkedIn, Instagram, Twitter/X, Reddit, YouTube, SEC EDGAR, Y Combinator, Crunchbase, and any URL on the web — through five universal tools.

npm version License: MIT Documentation


Quick start

Two ways to connect. Remote MCP is the recommended path for everyday use — managed cache, OAuth, no infrastructure. Self-hosted is for development or when you want the server running locally over stdio.

Option 1: Remote MCP with OAuth (recommended)

Hosted at https://mcp.anysite.io/mcp. Works with Claude Desktop, Claude Code, Cursor, Cline, Windsurf, ChatGPT, and any MCP-compliant client.

Step 1: Sign up

Create an account at anysite.io. The MCP30 promo covers your first month of MCP Unlimited ($30/month, 6 req/min fair-use, no credit counting). Credit-based plans (Starter $49 / Growth $200 / Scale $300 / Pro $549 / Enterprise from $1,199) also include MCP access; see docs.anysite.io/mcp-server/overview.

Step 2: Connect your client

  1. Settings → Connectors → Add Custom Connector
  2. URL: https://mcp.anysite.io/mcp
  3. Click Connect, authorize in the browser
  4. Required: Settings → Capabilities → Tool access → Tools already loaded

The last step is critical. Claude Desktop's "Load tools when needed" mode uses name-based matching that fails on generic names like discover and execute. If you skip it, the tools exist but the model will not reliably call them.

claude mcp add --transport http anysite "https://mcp.anysite.io/mcp?api_key=YOUR_KEY"
claude mcp list   # should show: anysite connected

The URL carries your API key — treat it as a secret.

Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in the project root:

{
  "mcpServers": {
    "anysite": {
      "url": "https://mcp.anysite.io/mcp?api_key=YOUR_KEY",
      "transport": "http"
    }
  }
}

Anysite implements MCP 1.0 over Streamable HTTP with OAuth 2.0. Point any compliant client at https://mcp.anysite.io/mcp and authenticate via OAuth or ?api_key=YOUR_KEY.

Step 3: Verify

Ask the assistant:

What MCP tools do you have from anysite?

It should list exactly: discover, execute, get_page, query_cache, export_data.

Step 4: Run a query

Use anysite to find 20 CTOs at Series B fintech startups in New York,
then show me the ones with AI or ML in their headline.

The assistant runs discover on LinkedIn, picks the right search endpoint, calls execute, then narrows server-side with query_cache.


Option 2: Self-hosted (npm, stdio)

For local development, custom integrations, or when you want the server in-process. Distributed as @anysiteio/mcp on npm. Runs over stdio; cache lives in-process for 7 days.

Install

npm install -g @anysiteio/mcp

Or run on demand with npx -y @anysiteio/mcp.

Configure your client

{
  "mcpServers": {
    "anysite": {
      "command": "npx",
      "args": ["-y", "@anysiteio/mcp"],
      "env": {
        "ANYSITE_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

That is the entire configuration. Only ANYSITE_ACCESS_TOKEN is required — create one at app.anysite.io.


What's new in 2.0

The server no longer ships 60+ individual tools. Instead, it exposes five universal meta-tools and discovers the underlying endpoints dynamically from the AnySite OpenAPI spec. This means:

  • Every new endpoint added to the AnySite API is available the next time the server starts — no package update required.
  • The agent learns the surface through discover(source, category) rather than from a static tool catalog.
  • Pagination, filtering and exports are handled in-process via the cache: one execute() call, then unlimited get_page / query_cache / export_data calls without re-paying API credits.

The five tools

| Tool | Purpose | |---|---| | discover(source, category) | List endpoints in a category with their params and LLM hints. Always call before execute. | | execute(source, category, endpoint, params) | Fetch data. Returns first 10 items + cache_key. | | get_page(cache_key, offset, limit) | Paginate cached items without re-fetching. | | query_cache(cache_key, conditions?, sort_by?, aggregate?, group_by?) | Filter / sort / aggregate cached items locally. | | export_data(cache_key, format) | Dump the full dataset to json / jsonl / csv. Returns a local file path. |

Sources surfaced through discover: LinkedIn, Instagram, Twitter/X, Reddit, YouTube, SEC EDGAR, Y Combinator, Crunchbase, DuckDuckGo, the universal web parser, plus AI parsers for GitHub, Amazon, Google Maps, G2, BuiltWith, Apify, GLEIF, Newegg and more. New endpoints appear automatically as soon as they ship on the platform — no package update required.


Usage pattern

discover("linkedin", "search")
  → endpoints: ["users", "companies", "posts", ...] with params

execute("linkedin", "search", "users", { keywords: "CTO AI" })
  → { items: [...first 10], total: 50, cache_key: "abc..." , next_offset: 10 }

get_page("abc...", offset=10)            # next page, free
query_cache("abc...", { conditions: [{ field: "location", op: "contains", value: "San Francisco" }] })
export_data("abc...", "csv")             # dump everything to a CSV file

Example: find decision makers and export to CSV

1. discover("linkedin", "search")
2. execute("linkedin", "search", "users", { keywords: "CTO", company_keywords: "AI" })
3. query_cache(cache_key, { conditions: [{ field: "location", op: "contains", value: "Berlin" }] })
4. export_data(cache_key, "csv")

The agent figures out the parameter names on its own from discover.


Local development

git clone https://github.com/anysiteio/anysite-mcp.git
cd anysite-mcp
npm install
npm run build:tsc
ANYSITE_ACCESS_TOKEN=... node build/server.js

Inspect the tools interactively:

npm run inspector

Configuration

| Env var | Required | Default | Notes | |---|---|---|---| | ANYSITE_ACCESS_TOKEN | yes | — | Create one at app.anysite.io | | ANYSITE_API_URL | no | https://api.anysite.io | Override the API base | | ANYSITE_OPENAPI_URL | no | https://api.anysite.io/openapi.json | Override the spec URL |


Project layout

src/
├── server.ts          stdio entry (CLI bin)
├── index.ts           Smithery TypeScript runtime adapter
├── loader.ts          fetches and parses the OpenAPI spec
├── registry.ts        in-memory source/category/endpoint registry
├── client.ts          HTTP client with retry/timeout
├── cache.ts           cache_key → items
├── query.ts           in-memory filter / sort / aggregate
├── export.ts          json / jsonl / csv writers
├── tools.ts           the five meta-tool handlers
├── tool-schemas.ts    MCP tool input schemas (zod + JSON Schema)
├── instructions.ts    instructions text for the LLM
├── config.ts          env-derived constants
└── types.ts           shared types

License

MIT