Loading...
Loading...
EnsemblAI · docs
Ask Claude, Cursor, Codex or your own scripts real questions about the PyPI and npm ecosystems: downloads, growth, dependencies, ownership. Pick the path that fits you and follow the steps.
API and MCP access are part of the Pro plan, $249.99/month (20K REST calls/mo · 5K MCP calls/day). Standard has no programmatic access at all, so for anything automated Pro is the entry point rather than the upgrade. Create an account and subscribe first.
No terminal and no key. You sign in with your EnsemblAI account.
Open Claude's connector page
In Claude, go to Customize → Connectors, click Add, then Add custom connector. Open it directly.
Enter the name and URL, then click Continue
Name: EnsemblAI. MCP server URL:
https://mcp.ensemblai.com/mcp
Change two settings, then click Add
This is the step people miss. Claude pre-selects other options, so change both:
Click Connect, sign in and click Allow
Claude opens the connector’s page. Click Connect, sign in with your EnsemblAI account if asked, and click Allow. The page may name us “Ensemble AI”; that’s us.
Try it
Start a new chat and ask this. Claude asks before it uses each tool, so click Allow once or Always allow. The reply should say it used EnsemblAI.
Use EnsemblAI to show the fastest-growing AI packages on PyPI.
On a Claude Team or Enterprise plan: an Owner adds the connector under Organization settings → Connectors → Add → Custom, using the same URL and settings. Each member then goes to Customize → Connectors and clicks Connect.
Add EnsemblAI in a terminal
claude mcp add --scope user --transport http ensemblai https://mcp.ensemblai.com/mcp
Sign in
claude mcp login ensemblai
A sign-in address opens in your browser. Sign in with your EnsemblAI account and click Allow. The page may name us “Ensemble AI”; that’s us. You can also run /mcp inside Claude Code and choose ensemblai.
Try it
Start Claude Code and ask:
Use EnsemblAI to show the fastest-growing AI packages on PyPI.
Use this instead of the steps above if you also want a skill that teaches Claude when to use the data and how to read it correctly. Inside Claude Code, run:
/plugin marketplace add EnsemblAI/claude-plugin /plugin install ensemblai@ensemblai
Then run /mcp, choose the EnsemblAI plugin server and sign in. From a terminal, claude mcp login plugin:ensemblai:ensemblai does the same. Without signing in it runs as the free trial. The plugin no longer takes an API key; if you set one in an earlier version, update the plugin and sign in once.
You need an API key first. Add this to ~/.codex/config.toml (or a project’s .codex/config.toml), with your key in place of the example:
[mcp_servers.ensemblai]
url = "https://mcp.ensemblai.com/mcp"
http_headers = { "Authorization" = "Bearer ek_live_YOUR_KEY" }To keep the key out of the file, export it as a variable and use this instead:
[mcp_servers.ensemblai] url = "https://mcp.ensemblai.com/mcp" bearer_token_env_var = "ENSEMBLAI_API_KEY"
You need an API key first. Cursor reads .cursor/mcp.json in the project, or ~/.cursor/mcp.json globally. Most other MCP clients take the same shape:
{
"mcpServers": {
"ensemblai": {
"url": "https://mcp.ensemblai.com/mcp",
"headers": { "Authorization": "Bearer ek_live_YOUR_KEY" }
}
}
}For anything that runs where nobody can open a browser. API keys need the Pro plan.
Issue a key
Go to Settings → API keys, give the key a name if you like, and click Issue key.
Copy it straight away
It is shown once and starts with ek_live_. If you lose it, revoke it on the same page and issue a new one.
Test it
Put your key in this command. You should get numpy’s details back as JSON.
curl -s https://api.ensemblai.com/v1/packages/numpy \ -H "Authorization: Bearer ek_live_YOUR_KEY"
To use the key with an MCP tool that runs unattended, such as Claude Code in CI:
claude mcp add --transport http ensemblai https://mcp.ensemblai.com/mcp \ --header "Authorization: Bearer ek_live_YOUR_KEY"
Full surface: OpenAPI schema · /llms-full.txt (generated from the live schema) · /llms.txt. Breaking changes are announced in the changelog.
Claude says a tool needs Pro, or lists stop at 10 rows. You are on the free trial. Either the connector was added with “No sign-in”, or you signed in with a Free or Standard account. Claude can’t change sign-in settings on an existing connector, so remove it under Customize → Connectors and add it again following Path 1.
There is no Connect button. The connector was added with “No sign-in”. Remove it and add it again following Path 1.
Claude doesn’t use EnsemblAI in a chat. Click + in the chat, choose Connectors and turn EnsemblAI on, or ask for it by name.
A request with an API key is refused. A 401 means the key is mistyped, revoked or expired. A 403 means the account is not on Pro.
Still stuck? Email support@ensemblai.com.
Pro account: all 32 tools at your plan’s limits, weekly data and full history.
Free or Standard account: the free trial, counted for your account alone: 10 calls a day on five read tools (search, package details, top downloads, compare, 6-month monthly charts). The other tools answer that they need Pro, and an upgrade reaches the open connection within a minute.
Not signed in: the same trial, but the 10 calls a day are shared by everyone on your network address, which in a hosted client such as Claude.ai can mean its other users too. To try it without an account in Claude, choose Sign in when needed in Path 1, and Claude asks you to sign in when the calls run out or a tool needs your account.
Because the questions worth asking are not lookups. Registry download endpoints answer one package at a time over a capped recent window: no rankings, no growth math, no ownership, no dependencies, no categories, no cross-ecosystem view. Registry search ranks by text relevance, so you can look a package up by name — but you cannot rank by downloads or growth, segment by industry, or see a trend.
The public download logs that do carry history are raw event tables — PyPI-only, no npm, no classification, no ownership, no aggregates. Getting from there to an answer means running the scans yourself and then building the analytics layer on top.
| 5.3M | packages tracked across PyPI and npm |
| 1.1B | stored download-history rows (866M weekly + 244M monthly) |
| 10+ yrs | earliest history — npm from 2015, PyPI from 2018 |
| 2.5M | pre-computed domain / category / owner rollup rows |
| 22.3M | dependency edges, plus 554 communities of PyPI packages |
| 2.1M | packages classified across 20 domains and 80 categories |
| 2,800+ | companies attributed, plus 42,312 GitHub orgs |
| 8.0M | version-month rows for per-version adoption |
What that takes to rebuild. Putting the pre- and post-2026 eras on a single comparable basis means re-processing three years of PyPI download logs at petabyte scale — and then continuing to re-process them every week to stay current. That is before npm mirroring, classification, ownership attribution, dependency extraction, or any of the aggregate layer. The segment-level series are the expensive part and the part nobody publishes.
And it is fast. Measured warm against production, three consecutive passes each: package detail, leaderboards, company stats, dependency lookups, ecosystem maps and multi-package series all return in 100–200 ms; the heaviest whole-segment aggregate, 24 months across an entire industry domain, takes about 1.3 s. For an agent that is one call instead of a dozen sequential fetches that still cannot answer the question.
The queries that only exist here. Totals, growth and leaders for an entire industry domain or technology category as one pre-computed series. What 2,800+ companies and 42,312 GitHub orgs actually publish. Ranked discovery that surfaces packages you did not know to ask about. Dependency structure, cohorts, and which packages travel together. All of it with identical field names for PyPI and npm, so a cross-ecosystem comparison is a filter rather than an integration project.
Comparable history, which is the part that matters most right now. A download should mean somebody fetched a package. From mid-July 2023 PyPI also logged metadata-sidecar fetches, which are not downloads, and their share of logged rows grew from under 0.03% to roughly 40% by 2026. On 2026-08-24 it stopped logging them. So anyone counting raw log rows is inflated across 2023 to 2026 and then drops ~35% overnight for no real-world reason, which silently breaks year-over-year growth, rankings and trend math. EnsemblAI counts distribution files only, for all time: history from July 2023 was re-derived on that basis and nothing earlier needed changing, so there is one basis end to end and no step at any date. Where a raw-row source reads higher for 2023 to 2026, that is its overcount, not our undercount. Details in How we count downloads.
CI is separated, and geography is a control, not a footnote. Every PyPI series is stored as ci_downloads and non_ci_downloads; ci_percentage is a sort field on the package listing and the split is returned by the per-package metrics endpoint, so "growing because people install it" versus "growing because pipelines re-install it" is a query rather than a guess. The headline total_downloads includes CI on purpose, so it stays comparable to what the registry publishes. country_grouping=ALL | US | ALL_EX_US applies to metrics, time series, growth and leaderboards, and /v1/analytics/geography breaks a package out per country. Not separated: mirrors and Docker-layer rebuilds are not flagged as such (ex-US and the CI split are the available proxies), and there is no per-installer endpoint yet.
When a number here will not match a registry endpoint. These figures are reconciled against the registries on a schedule (with our estimates for npm’s zero days set aside), and a month is published as complete only once a sample of it matches. A point-in-time comparison can still differ, for these reasons and only these: windows (ours are calendar months and Monday–Sunday weeks; a registry “last month” is a rolling window ending today); completeness lag (the most recent ~6 weeks are subject to the registry’s own late backfill); the PyPI normalization above; npm zero days, estimated (below); and corrections (when a gap in our data is found, history is fixed rather than left wrong). A difference not explained by one of those is a bug — report it to support@ensemblai.com and it will be reconciled.
npm days with no data are estimated, and marked. On some days npm’s own statistics report zero downloads for every package at once, an outage of npm’s counting. Left at zero, each such day makes its week and month read up to a quarter low and breaks every trend across it, so we estimate those days to keep every npm week and month complete and comparable. A month that includes estimated days is typically within about 1% of its real total; the estimated part itself can be large, about a fifth of a package’s October 2026, which had six such days. The time series (MCP: time_series_for_packages) marks them: estimated_days on the period and estimated_downloads, the estimated part of a package’s total. For those weeks and months our number is higher than npm’s own (and than tools built on npm’s API) by exactly that estimate; every other period matches npm. When npm publishes a day later, its real number replaces the estimate at the next weekly update. How we estimate them.
Data & rankings
search_packages · get_package_details · get_package_metrics · get_package_health · top_downloads · growth_movers · time_series_for_packages · compare_packages · reference_values
Ownership & organizations
list_companies · list_company_packages · get_company_stats · list_organizations · get_organization_packages
Discovery & structure
get_package_dependencies · package_depgraph · package_cohort · ecosystem_map · ecosystem_clusters · audit_dependencies
Tracking (writes to your account)
list_watchlist · add_to_watchlist · remove_from_watchlist · list_alerts · create_alert · delete_alert · list_ensembles · get_ensemble · create_ensemble · update_ensemble · delete_ensemble · ensemble_analytics
Every call is scoped to your account: tier limits, rate limits, and row-level security apply identically to MCP, REST, and the dashboard.
Monthly billing, no annual lock-in, and a soft overage cap on paid plans so a runaway job cannot produce a surprise bill.
| Free | $0 | Dashboard, 10 rows per list (50 on search), 5 watched packages, 1 saved search, 12 months of history at monthly resolution. No API, agent, alerts or exports. |
| Standard | $99.99/mo | Research in the dashboard: AI agent (100 msgs/mo), 25 alerts, 10 ensembles, dependency graphs, cohort analysis, version adoption, full ecosystem map, 50 CSV exports/mo, and 36 months of history at monthly resolution (one point per month). No API or MCP. |
| Pro | $249.99/mo | Adds REST API (20K calls/mo) and MCP (5K calls/day), unlimited history at weekly resolution (one point per week), 500 agent msgs/mo, 100 alert rules, 500 exports/mo up to 250K rows in CSV/JSON/Parquet, full dependency audit, and a 90-day audit log. |
Why Pro, if you are connecting a tool. It is the only plan with programmatic access, so the comparison is not Standard versus Pro but Pro versus not connecting. It is also where the comparable history becomes usable: Standard stops at 36 months at monthly resolution, and year-over-year work across the 2026 change needs the full series at weekly resolution, which surfaces a trend turn within a week or two instead of at month close.
Against building it. Keeping only the PyPI download side current means re-scanning the full log history every week, indefinitely — and that buys none of the npm coverage, classification, ownership attribution, dependency graph or pre-computed aggregates, nor the engineering time to build and run them.
Need more than Pro? sales@ensemblai.com.