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

@artano-ai/mcp-server

v0.1.1

Published

Lemma's Model Context Protocol server — exposes the open scientific cards corpus, the cross-check engine, and RAG retrieval to any MCP-compatible client.

Readme

@artano-ai/mcp-server

Lemma's MCP server — exposes the open cards corpus and verification engines to any MCP-compatible client.

The server is the canonical distribution surface for the Lemma substrate. Plug it into claude-code, Cursor, Codex, Gemini Code Assist, or any MCP-aware tool-use runtime and gain access to:

Cards & verification

  • cards_list — list curated scientific principle cards in the local seed corpus (condensed-matter physics, classical mechanics, chemistry — the corpus is domain-agnostic and grows over time). Optional domain substring filter.
  • cards_get — fetch a full card record (PrincipleCard or HypothesisCard) by id. Returns the JSON payload. Refuses to fabricate — unknown ids produce a structured error listing valid ids.
  • ops_get — fetch an OpsCard (SLURM / Snakemake / Singularity recipes) rendered as Markdown for direct LLM consumption.
  • hypothesis_crosscheck — run the hypothesis cross-check engine on a HypothesisCard. Pass either an id (existing card) or an inline card object (e.g. one freshly proposed by an LLM). Verifies dimensional analysis (real), reference-corpus resolution (real), declared limit / conservation claims (recorded as warnings pending symbolic verification), and derivedFrom link resolution. Returns a verdict + diagnosis.

Retrieval

  • rag_lookup — retrieves passages from a Postgres + pgvector corpus indexed over the Siesta manual, ASE, pymatgen, numerical methods, SLURM/MareNostrum docs, and any extra source you point it at.

Tools deliberately omitted: read_file, write_file, list_files, run_shell. Every modern tool-use runtime already provides those — this server adds the scientific layer on top.


Install

pnpm install
pnpm build

Configure

Copy .env.example to .env.local and fill in at least LEMMA_RAG_DSN. The other variables have working defaults for local development.

The Postgres database must have the pgvector extension enabled and a chunks table of embedded passages. The server reads from that table; building and populating it (embedding your sources, then indexing) is a separate step run against the same schema.

Wire it into a client

Most MCP clients accept a stdio server defined in a JSON config. The exact location of that config depends on the client. The shape is universal:

{
  "mcpServers": {
    "lemma": {
      "command": "node",
      "args": ["/absolute/path/to/repo/mcp-server/dist/index.js"],
      "env": {
        "LEMMA_RAG_DSN": "postgresql://you@localhost:5432/atomira_lab"
      }
    }
  }
}

Once the client restarts, the tools appear and can be called the same way as any other tool the client exposes.

The cards/hypothesis tools work with no env config — they read from the bundled seed corpus. Only rag_lookup needs LEMMA_RAG_DSN; the others are optional.

Run from source (dev)

pnpm dev

Speaks MCP over stdio. Connect any MCP client to it (or use the bundled smoke test once it's added).

What this is and isn't

  • This server is infrastructure. It does not call an LLM, does not maintain conversation state, and does not know which client is calling it. It just exposes tools.
  • It is one of several clients of the same Lemma backend (cards corpus + USCE + cross-check engine) — alongside the Python SDK, a CLI, IDE extensions, and web front-ends. Those are independent consumers of the substrate, not part of this package.
  • For the wider Lemma architecture (cards corpus, hypothesis cross-check engine, provenance), see ../cards/README.md and the JSON Schema at ../schema/card.v0.1.json.

License

Apache-2.0. The cards corpus bundled into the published package (dist/_corpus/) is CC-BY 4.0 — its LICENSE travels with it; attribution to Atomira Technologies, S.L. and the Lemma card authors.