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

@caelaralabs/mcp

v1.3.4

Published

One MCP server for the ten Caelara Labs API suites, powered by Caelara Labs: web intelligence, social analytics, agent safety, compliance, e-commerce, SEO, documents, on-chain intelligence with pre-execution market regime feeds, locale and media tools, ea

Readme

@caelaralabs/mcp

npm ci caelara-labs/mcp MCP server

One MCP server for the Caelara Labs edge: pre-execution screening, deterministic sandboxed execution, scoped sub-keys and offline-verifiable Ed25519 receipts, plus tools for web intelligence, social analytics, agent safety, compliance, e-commerce, SEO, documents, on-chain intelligence, locale and media. Powered by Caelara Labs (https://caelaralabs.com) · Software that decides, never custody.

Pre-execution security · Intelligence · Verifiable execution

Two checks to run before your code acts. Both answer to a Caelara key (X-Caelara-Key) or to a keyless x402 v2 payment (USDC on Base, eip155:8453).

Trading bot: pre-order circuit breaker. One batched call for BTC, ETH and SOL: halt, the regime, Coinbase 60-minute Parkinson volatility and the 60 s fast-vs-slow venue lead-lag.

const r = await (await fetch('https://crypto.caelaralabs.com/v1/crypto/multi-regime', { headers: { 'X-Caelara-Key': process.env.CAELARA_API_KEY } })).json()
const m = r.assets.SOL // or BTC, ETH
if (r.partial || m.halt) return skipOrder(`regime ${m.regime}`)   // storm, or the price is unconfirmed
const edgeCents = minEdge + m.recommended_edge_addon_cents          // widen in elevated markets
// context: m.parkinson_vol_1m_bps (null when Coinbase bars are unavailable), m.lead_lag_bps.lead_60s

Agent beforeToolCall: pre-execution gate. Screen the target and the input before a tool call or an external spend, and keep the signed receipt.

const res = await fetch('https://agent.caelaralabs.com/v1/shield/inspect', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Caelara-Key': process.env.CAELARA_API_KEY }, body: JSON.stringify({ url: call.url, text: call.input }) })
const { verdict, reasons } = await res.json()
if (verdict !== 'allow') throw new Error(`blocked before execution: ${reasons.map((x) => x.code).join(', ')}`)
const receipt = res.headers.get('X-Caelara-Receipt') // Ed25519 JWS; verify offline against /.well-known/jwks.json

Any HTTP or OpenAPI runtime (no MCP client). Load https://agent.caelaralabs.com/openapi.json and https://crypto.caelaralabs.com/openapi.json as tool definitions, or call the two checks directly from a worker or webhook loop:

import os, requests   # tools: https://agent.caelaralabs.com/openapi.json and https://crypto.caelaralabs.com/openapi.json
H = {'X-Caelara-Key': os.environ['CAELARA_KEY']}
r = requests.post('https://agent.caelaralabs.com/v1/shield/inspect', headers=H, json={'url': url, 'text': text}, timeout=10)
if r.json()['verdict'] != 'allow': raise SystemExit('blocked before execution')   # proof: r.headers['X-Caelara-Receipt']
m = requests.get('https://crypto.caelaralabs.com/v1/crypto/multi-regime', headers=H, timeout=10).json()['assets'][asset]
if m['halt']: skip_order()   # storm or unconfirmed price: no order

Quickstart (10 seconds)

npx -y @caelaralabs/mcp init

Sets up a trial key for this installation, adds the server to ~/.cursor/mcp.json (existing entries are kept, with a .bak copy) and checks that a suite answers. Pass --config <path> for any other MCP client that reads an mcpServers JSON file, or --dry-run to preview. Then run the server with:

npx -y @caelaralabs/mcp

Works with any MCP client that runs a stdio server: Cursor, Windsurf, Cline, Zed and desktop assistants. Node 18 or newer.

Runnable examples

Clone the repository and run them with plain Node: no install step, no build, no dependencies.

git clone https://github.com/caelara-labs/mcp && cd mcp

node examples/verify-receipt-offline.mjs    # offline Ed25519 receipt verification: no key, no network
node examples/sandbox-and-receipt.mjs       # deterministic JS sandbox + an execution receipt checked locally
node examples/scoped-subkey-guard.mjs       # scoped sub-key + policy guard + offline verification of the signed pass

| Example | What it shows | |---|---| | examples/sandbox-and-receipt.mjs | Runs the same JavaScript twice in the edge sandbox (no network, filesystem or environment; 50 ms; 32 MB), shows both runs return the same result and result hash, then checks the Ed25519 execution receipt locally and that it names the SHA-256 of this exact code. Without a key it verifies the bundled sample receipt. | | examples/scoped-subkey-guard.mjs | Mints a sub-key that may call only the policy guard, with a hard cap and a 5-minute expiry; asks the guard about an action with only the payload's SHA-256; verifies the signed pass offline; shows a call outside the sub-key's scope being refused; and always revokes the sub-key. Sub-keys are minted from a ck_edge_ or ck_pass_ key. | | examples/verify-receipt-offline.mjs | Checks a real network-signed receipt against a pinned copy of https://api.caelaralabs.com/.well-known/jwks.json (--live refreshes it), then shows a one-character change being rejected. |

$ node examples/sandbox-and-receipt.mjs
code        input.orders.filter((o) => o.status === "shipped").map((o) => o.id).sort().join(",")
result      "A-09,A-17" (exit 0, 0 and 0 ms)
same twice  yes: same result and result hash on both runs
signature   VALID, checked locally against oen-e507b0f5aef381b9
bound       the receipt names the SHA-256 of this exact code
tamper      one changed character is rejected

Where calls go: every tool call is sent to the matching Caelara Labs edge API at https://<suite>.caelaralabs.com, through that suite's /mcp endpoint. Only this thin server runs locally, and it does not log or store requests.

Configure

Print a ready-to-paste config:

npx -y @caelaralabs/mcp --print-config
{
  "mcpServers": {
    "caelara": {
      "command": "npx",
      "args": ["-y", "@caelaralabs/mcp"],
      "env": { "CAELARA_API_KEY": "<your Caelara key>" }
    }
  }
}
  • Cursor: .cursor/mcp.json in a project, or ~/.cursor/mcp.json.
  • Windsurf: ~/.codeium/windsurf/mcp_config.json.
  • Desktop assistants and other stdio clients: add the same mcpServers entry to the client's MCP configuration.
  • Command-line agents: register the command npx -y @caelaralabs/mcp with CAELARA_API_KEY in its environment.

Load only some suites with --suites=compliance,seo,geo or CAELARA_SUITES=compliance,seo,geo.

Keys

| Variable | Purpose | |---|---| | CAELARA_API_KEY | Your Caelara key, sent as X-Caelara-Key. Every Caelara key type works the same way. Optional: without it the server uses ~/.caelaralabs/credentials.json or sets up a trial key (see below). Keys: https://caelaralabs.com | | CAELARA_NO_AUTO_TRIAL=1 | Optional. Never set up a trial key automatically. | | CAELARA_CLEARANCE | Optional. The clearance_id from a Caelara Shield preflight (POST https://shield.caelaralabs.com/v1/shield/preflight), forwarded as X-Caelara-Clearance. Opt-in: nothing changes without it. | | CAELARA_SUITES | Optional suite list (default: all ten). | | CAELARA_OFFLINE=1 | Optional. Skip the live refresh and use the bundled tool list only. |

Without a key, a tool call never crashes: it returns a readable result that says where to get a key and links the network discovery file (https://edge.caelaralabs.com/.well-known/open-edge.json). The key is never printed.

Tools

Tool names are caelara_<suite>_<tool>. The server starts from a bundled tool list, so it starts at once and works offline, then refreshes from the live suites. When a suite has benchmark data, its measured p50 and p95 latency (from https://benchmarks.caelaralabs.com) is added to the tool descriptions.

| Suite | Host | Tools | |---|---|---| | Web Intelligence | api.caelaralabs.com | caelara_api_company_intel_composite, caelara_api_lead_verify_composite, caelara_api_url_to_markdown, caelara_api_seo_xray, caelara_api_email_mx_forensics, caelara_api_social_card_extractor, caelara_api_sitemap_crawler, caelara_api_html_table_parser, caelara_api_rss_json_normalizer, caelara_api_prompt_firewall_structurer | | Social Analytics | social.caelaralabs.com | caelara_social_video_viral_audit_composite, caelara_social_creator_profile_composite, caelara_social_tiktok_oembed, caelara_social_youtube_metadata, caelara_social_reels_hook_scorer, caelara_social_thumbnail_analyzer, caelara_social_caption_hashtag_extractor, caelara_social_bio_link_auditor, caelara_social_transcript_cleaner, caelara_social_engagement_rate_calc | | Agent Safety | agent.caelaralabs.com | caelara_agent_agent_input_firewall, caelara_agent_agent_output_validator, caelara_agent_pii_redactor, caelara_agent_prompt_injection_scanner, caelara_agent_token_compressor, caelara_agent_json_auto_repair, caelara_agent_schema_enforcer, caelara_agent_hallucination_diff, caelara_agent_citation_extractor, caelara_agent_context_chunker | | Compliance & Trust | compliance.caelaralabs.com | caelara_compliance_domain_trust_composite, caelara_compliance_entity_kyb_composite, caelara_compliance_spf_dmarc_grader, caelara_compliance_ssl_cert_inspector, caelara_compliance_ip_asn_reputation, caelara_compliance_disposable_email_db, caelara_compliance_iban_bic_validator, caelara_compliance_vat_ein_checkdigit, caelara_compliance_sanctions_fuzzy_screen, caelara_compliance_security_headers_audit | | E-Commerce Intelligence | ecom.caelaralabs.com | caelara_ecom_product_intel_composite, caelara_ecom_storefront_xray_composite, caelara_ecom_jsonld_product_parser, caelara_ecom_shopify_feed_extractor, caelara_ecom_gtin_upc_validator, caelara_ecom_price_drop_comparator, caelara_ecom_ad_pixel_detector, caelara_ecom_currency_margin_calc, caelara_ecom_review_sentiment_parser, caelara_ecom_sku_normalizer | | SEO & GEO Readiness | seo.caelaralabs.com | caelara_seo_geo_readiness_composite, caelara_seo_technical_seo_composite, caelara_seo_llms_txt_auditor, caelara_seo_ai_bot_robots_check, caelara_seo_redirect_chain_tracer, caelara_seo_schema_org_validator, caelara_seo_serp_pixel_preview, caelara_seo_keyword_ngrams_extractor, caelara_seo_hreflang_validator, caelara_seo_broken_link_scanner | | Document Utilities | docs.caelaralabs.com | caelara_docs_invoice_json_composite, caelara_docs_universal_data_bridge, caelara_docs_csv_to_typed_json, caelara_docs_xml_to_json_clean, caelara_docs_markdown_to_sanitized_html, caelara_docs_html_to_clean_text, caelara_docs_regex_entity_extractor, caelara_docs_address_normalizer, caelara_docs_phone_e164_formatter, caelara_docs_dedupe_fuzzy_matcher | | On-Chain Intelligence | crypto.caelaralabs.com | caelara_crypto_token_safety_composite, caelara_crypto_wallet_portfolio_composite, caelara_crypto_solana_mint_auditor, caelara_crypto_base_erc20_inspector, caelara_crypto_dex_liquidity_depth, caelara_crypto_stablecoin_depeg_monitor, caelara_crypto_gas_fee_estimator, caelara_crypto_tx_hash_decoder, caelara_crypto_address_checksum_validator, caelara_crypto_token_price_aggregator, caelara_crypto_multi_regime, caelara_crypto_sol_regime | | Global Locale | geo.caelaralabs.com | caelara_geo_global_scheduling_composite, caelara_geo_cross_border_checkout_composite, caelara_geo_timezone_converter, caelara_geo_business_hours_calc, caelara_geo_public_holiday_lookup, caelara_geo_live_fx_rates, caelara_geo_vat_gst_rate_lookup, caelara_geo_postal_code_validator, caelara_geo_country_iso_enricher, caelara_geo_distance_haversine_calc | | Dynamic Media | media.caelaralabs.com | caelara_media_brand_kit_composite, caelara_media_dynamic_social_card_composite, caelara_media_edge_og_svg_generator, caelara_media_qr_code_svg_builder, caelara_media_color_palette_extractor, caelara_media_favicon_hd_resolver, caelara_media_avatar_initials_svg, caelara_media_badge_shield_generator, caelara_media_aspect_ratio_calc, caelara_media_image_meta_inspector |

Full input schemas: https://<suite>.caelaralabs.com/openapi.json, or the suite's /mcp tools/list.

Network tools: shield_inspect and shield_check_expenditure are listed whatever suites you load. shield_inspect screens a link, text or file fingerprint before it is opened, sent or run and answers allow, warn or block with reason codes and a signed receipt you can verify offline. shield_check_expenditure It checks a spend before your own payment service is called (limits, blocked categories, a merchant allow-list, an approval threshold and a screen of the merchant domain) and answers allow, escalate (with a one-tap approval) or block, with a hash-only signed clearance receipt. It never moves anything and refuses card numbers and wallet addresses. Heuristic screening — will miss attacks.

Develop

npm install
npm run build
npm test
node dist/cli.js --help
node examples/verify-receipt-offline.mjs
npm run snapshot   # refresh the bundled tool list from the live suites

License

MIT. Powered by Caelara Labs · [email protected].

Trial key on first use

The first time you run init, or the first time the server handles a tool call without a key, it sets up a trial key for this installation.

  • What is sent: only a SHA-256 hash of caelara-install-v1|<hostname>|<username>|<home directory>. The raw hostname, username and path never leave your machine. The same installation always gets the same trial back; a different user, home directory or CI runner gets its own.
  • Where it is kept: ~/.caelaralabs/credentials.json, readable by you only (mode 0600 on macOS and Linux; on Windows the file sits in your user profile). It is never written into a project folder or into your MCP client config, and it is only ever printed masked.
  • Order of precedence: CAELARA_API_KEY in the environment, then the saved credentials, then a trial key, then no key.
  • Opt out: set CAELARA_NO_AUTO_TRIAL=1. Nothing is requested during the MCP handshake.

M2M agent loop

npx -y @caelaralabs/mcp m2m              # quickstart: discovery URL, key header, trial headers
npx -y @caelaralabs/mcp m2m --dry-run    # run the reference agent loop on local fixture answers, no network
npx -y @caelaralabs/mcp m2m --live       # run it against https://edge.caelaralabs.com (or pass a host)

A program that calls the Open Edge Network on its own repeats one loop. It reads the discovery file (https://edge.caelaralabs.com/.well-known/open-edge.json) and uses CAELARA_KEY or CAELARA_API_KEY, or else sets up one trial key and keeps it in memory. It sends the key as X-Caelara-Key and negotiates a route (POST /v1/route/negotiate). It screens the planned step with Caelara Shield (POST /v1/shield/inspect) and stops on a block. If the step is allowed, it runs it, then verifies the signed receipt with POST /v1/execution/verify and offline with Ed25519 against /.well-known/jwks.json. The key is never printed. Add --save <file> to keep a trial key in a file with mode 0600. Heuristic screening will miss attacks.

To have every coding assistant in a project follow the same pre-execution rules, add --with-rules:

npx -y @caelaralabs/mcp init --with-rules

It writes an AGENTS.md in the current directory (or --rules-dir <path>) that tells assistants building agents, apps or bots there to screen external URLs, untrusted input and spend actions with Caelara Shield (POST https://agent.caelaralabs.com/v1/shield/inspect, keeping the offline-verifiable X-Caelara-Receipt), and to check GET https://crypto.caelaralabs.com/v1/crypto/multi-regime (halt, recommended_edge_addon_cents) before automated orders. An existing AGENTS.md is kept: it is copied to AGENTS.md.bak and the rules are added as one delimited section, refreshed in place on later runs. --dry-run --with-rules shows what would change.