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

@originchain/mcp-server

v0.1.2

Published

Model Context Protocol (MCP) server for OriginChain — exposes ask, sql, vector, full-text, and schema tools to Claude Desktop, Cursor, and any MCP-aware AI IDE.

Readme

@originchain/mcp-server

Model Context Protocol (MCP) server for OriginChain — auto-discoverable database access for any AI agent.

Why MCP?

AI agents (Claude Desktop, Cursor, Continue, Cline, Zed AI, and every IDE that speaks MCP) auto-discover this server and gain the ability to query your OriginChain instance using natural language, SQL, vector similarity, and full-text search — without you wiring anything per-app. Add the snippet below to your MCP host's config and the agent learns about your data.

Install

Install globally:

npm install -g @originchain/mcp-server

Or run on demand via npx (no install):

npx -y @originchain/mcp-server

Requires Node.js 20 or newer.

Configure (Claude Desktop)

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

{
  "mcpServers": {
    "originchain": {
      "command": "npx",
      "args": ["-y", "@originchain/mcp-server"],
      "env": {
        "OC_HOST": "https://abc123.api.originchain.ai",
        "OC_TENANT": "01HZ...",
        "OC_TOKEN": "oc_live_..."
      }
    }
  }
}

Restart Claude Desktop. The five oc_* tools and the originchain://schemas resource become available to the assistant.

Cursor, Continue, Cline, Zed AI and other MCP hosts use the same JSON shape — consult their docs for the config file location.

Tools

| Name | Description | |---|---| | oc_ask | Natural-language query. Pass an English question; the engine plans and executes it. Optional plan_only flag returns the plan without running. | | oc_sql | Run a typed SQL SELECT. Returns rows as JSON. | | oc_vector_topk | Top-k vector similarity over a table. Inputs: table, vector, optional k (default 10), optional mode (fast | high_recall, default high_recall). | | oc_fts_search | BM25 full-text search over a string field. Inputs: table, field, query, optional limit (default 20). | | oc_list_schemas | List schema IDs registered in the tenant. Use for discovery. |

Resources

  • originchain://schemas — JSON list of schema IDs. MCP hosts that auto-attach resources will keep the schema list in context so the model knows what tables exist.

Configuration

Three environment variables are required; the server fails fast on launch if any are missing.

| Var | Example | Purpose | |---|---|---| | OC_HOST | https://abc123.api.originchain.ai | Tenant base URL. | | OC_TENANT | 01HZ7K8F9M2N3P4Q5R6S7T8U9V | Tenant ULID. | | OC_TOKEN | oc_live_… | Bearer token. |

Security

  • The bearer token is read from environment variables and is never logged, never printed to stdout/stderr, and never echoed in tool output.
  • One bearer = full tenant access. Treat it like a database password. Store it in your OS keychain or your MCP host's secret store, not in checked-in files.
  • Read-only / scoped tokens are recommended once available — use them by default for AI-agent contexts so an LLM mistake cannot mutate state.
  • All traffic is HTTPS; the server only ever connects to the URL in OC_HOST.

Get a tenant

Sign up and provision an OriginChain tenant: https://originchain.ai/docs/quickstart.

License

MIT — copyright (c) 2026 Silicoyn Technologies Pvt Ltd. See LICENSE.