@adcp/sdk weekly downloads statistics
By adcp · npm · MCP servers
AdCP SDK — client, server, and compliance harnesses for the AdContext Protocol (MCP + A2A)
@adcp/sdk has 14,538 recorded weekly downloads on npm, a decrease of 7.7% over the past 30 days, ranking #868 of 2,322 tracked listings.
About @adcp/sdk
@adcp/sdk
Official TypeScript/JavaScript SDK for the Ad Context Protocol (AdCP). Use its buyer client to call agents, server framework to build them, and conformance tools to test them. The SDK supports MCP and A2A, with both immediate and asynchronous task results.
For AI Agents
Start with docs/llms.txt — the full protocol spec in one file (tools, types, error codes, examples). Building a server? See docs/guides/BUILD-AN-AGENT.md. Calling an AdCP agent as a buyer? Load skills/call-adcp-agent/SKILL.md — wire contract, async flow, and error-recovery priors that aren't in the type signatures. Setting up request signing? See docs/guides/SIGNING-GUIDE.md. For type signatures, use docs/TYPE-SUMMARY.md. Skip src/lib/types/*.generated.ts — they're machine-generated and will burn context.
These docs are also available in node_modules/@adcp/sdk/docs/ after install.
The Core Concept
AdCP operations are distributed and asynchronous by default. An agent might:
- Complete your request immediately (synchronous)
- Need time to process and send results via webhook (asynchronous)
- Ask for clarifications before proceeding
- Send periodic status updates as work progresses
Your code stays the same. You write handlers once, and they work for both sync completions and webhook deliveries.
Installation
npm install @adcp/sdk # 16.x, AdCP 3.2
npm install @adcp/sdk@adcp-3.1 # 13.x, maintained AdCP 3.1 line
npm install @adcp/sdk@adcp-3.0 # 7.11.x, AdCP 3.0
AdCP 2 reached end of life on August 1, 2026. This checkout supports AdCP 3 agents only; review the AdCP 2 retirement guide before upgrading an integration that still calls AdCP 2 sellers.
Upgrading to SDK 16? Read the SDK 16 release notes and release-bound upgrade worksheet. The npm latest tag tracks SDK 16 (AdCP 3.2); SDK 13 stays available on adcp-3.1 as the maintained AdCP 3.1 line. SDK 16 requires Node.js ^20.19.0 || >=22.12.0. Earlier migration guides: SDK 15 OAuth, 13-to-14, 12-to-14, 12-to-13, MIGRATION-v8.md, and 8.0-to-8.1.
Narrow type imports (@adcp/sdk/types/<tool>)
Adopters who only need a single AdCP tool's types can import a per-tool slice instead of the full surface. Each slice is a self-contained .d.ts covering the tool's Request / Response / Success / Error / Submitted types and every type they reference:
import type { SyncAccountsRequest } from '@adcp/sdk/types/sync-accounts';
Why bother: the full @adcp/sdk type surface is ~45,000 lines and crashes tsc at Node's default 4 GB heap under strict + skipLibCheck:false. A single per-tool slice peaks at ~50 MB. That's the difference between adopters chasing the cryptic FATAL: mark-compact Node flag and just having their build pass.
Slices use kebab-case filenames matching the schema cache (sync_accounts → @adcp/sdk/types/sync-accounts). Requires moduleResolution: "node16" / "nodenext" / "bundler" on the adopter side. A machine-readable index of available slices ships at @adcp/sdk/types/per-tool-index.json.
TypeScript footprint in monorepos
Large workspaces should keep the generated schema surface out of the default type-check path unless they actually need runtime Zod validators. The root @adcp/sdk export and @adcp/sdk/types do not re-export generated Zod schemas; import those schemas from @adcp/sdk/schemas so ordinary SDK imports avoid pulling the full generated schema declaration set into tsc.
| Need | Recommended import |
|---|---|
| Client, server, signing, and response helpers | @adcp/sdk, @adcp/sdk/client, @adcp/sdk/server, or another focused runtime subpath |
| One tool's request/response types | @adcp/sdk/types/<tool> such as @adcp/sdk/types/sync-accounts |
| Runtime Zod schemas and tool schema maps | @adcp/sdk/schemas |
| Runtime Zod schemas in browser UIs | @adcp/sdk/schemas/browser |
| Broad generated protocol type barrel | @adcp/sdk/types |
Browser widgets and dashboards can validate AdCP objects with the generated Zod schemas:
import {
EventSourceHealthSchema,
SyncAudiencesResponseSchema,
SyncEventSourcesResponseSchema,
} from '@adcp/sdk/schemas/browser';…
Description from the npm listing.
- adcp
- mcp
- a2a
- protocol
- client
- library
- advertising
- testing
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm MCP servers plugins
All 20 @adcp/sdk alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@adcp/sdk. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.