How to find MCP servers and SDKs in your SBOM (and why it matters)
Would rather we looked for you? We run a free one-time audit scan of one cloud account and go through the results with you. No charge, no commitment.
Free audit scanPackage names were checked on 28 November 2026 against the official SDK list, each SDK's GitHub repository and its package registry. Onam sells a security platform that builds an AI bill of materials from SBOMs, and says so in its own labelled section below.
The Monday question
Someone in the security review asks: "Which of our services run an MCP server, and what can it touch?" Nobody in the room knows. A developer added an MCP server so an AI assistant could query the ticket system, another team wrapped an internal API in one, and a data team is testing a client inside a notebook image.
You do not need a new tool to start answering. If you already make SBOMs for your repositories and container images, the answer is mostly in there. MCP servers and clients are built with SDKs, and SDKs are dependencies.
Why an MCP SDK deserves its own line in the inventory
MCP lets an AI application call tools that a server exposes. The project describes every official SDK the same way: they create "MCP servers that expose tools, resources, and prompts" and "MCP clients that can connect to any MCP server" (MCP SDKs). A tool is code that runs with the server's permissions. So an MCP server is a new way in to whatever its credentials can reach, and a language model decides when to call it.
The project's own security best practices name the risks you should check against:
- Token passthrough. The guidance calls it "an anti-pattern" and says "MCP servers MUST NOT accept any tokens that were not explicitly issued for the MCP server."
- Broad scopes. It warns about tokens "carrying broad scopes (
files:*,db:*,admin:*)" and lists "using wildcard or omnibus scopes" as a common mistake. - Local servers. Servers that run on a user's machine "may have direct access to the user's system and may be accessible to other processes running on the user's machine."
The SDK version matters too. The TypeScript SDK's v1 line (@modelcontextprotocol/sdk) "continues to receive bug fixes and security updates for at least six months after the v2 release (2026-07-27)" (TypeScript SDK README). A v1 hit is a dated upgrade to plan, not an emergency.
The official MCP SDKs and their package names
The MCP project lists ten official SDKs, in three tiers (MCP SDKs). These are the names you will see in an SBOM:
| Language | Package names to search for | Registry | Package URL (purl) prefix | Tier |
|---|---|---|---|---|
| TypeScript | @modelcontextprotocol/server, @modelcontextprotocol/client (v2); @modelcontextprotocol/sdk (v1) | npm | pkg:npm/%40modelcontextprotocol/ | 1 |
| Python | mcp | PyPI | pkg:pypi/mcp | 1 |
| C# | ModelContextProtocol, ModelContextProtocol.Core, ModelContextProtocol.AspNetCore | NuGet | pkg:nuget/ModelContextProtocol | 1 |
| Go | github.com/modelcontextprotocol/go-sdk | Go packages | pkg:golang/github.com/modelcontextprotocol/go-sdk | 1 |
| Rust | rmcp, rmcp-macros | crates.io | pkg:cargo/rmcp | 1 |
| Ruby | mcp | RubyGems | pkg:gem/mcp | 1 |
| Java | io.modelcontextprotocol.sdk:mcp (also mcp-core and the Spring modules) | Maven Central | pkg:maven/io.modelcontextprotocol.sdk/ | 2 |
| Swift | github.com/modelcontextprotocol/swift-sdk | Swift Package Manager | pkg:swift/github.com/modelcontextprotocol/swift-sdk | 3 |
| PHP | mcp/sdk, or mcp/server, mcp/client and mcp/schema | Packagist | pkg:composer/mcp/ | 3 |
| Kotlin | io.modelcontextprotocol:kotlin-sdk, kotlin-sdk-client, kotlin-sdk-server | Maven Central | pkg:maven/io.modelcontextprotocol/kotlin-sdk | 3 |
Two things to watch. The names mcp on PyPI and RubyGems are short, so match them exactly, not as a prefix, or you will catch unrelated packages that start with "mcp". And the @modelcontextprotocol npm scope also holds the project's tools, such as the MCP Inspector, and reference servers such as @modelcontextprotocol/server-everything, so a hit in that scope is not always an SDK. Purl formats follow the package-url type definitions: npm scopes are written with %40 for the @ sign, and Go namespaces are lower case.
Step 1: make an SBOM if you do not have one
Syft is an open-source SBOM generator. It reads a directory or a container image and writes CycloneDX or SPDX JSON. The commands below follow the examples in its README:
# a source directory, as CycloneDX JSON
syft ./my-service -o cyclonedx-json=./sbom.cdx.json
# a container image, as both SPDX and CycloneDX JSON
syft <image> -o spdx-json=./sbom.spdx.json -o cyclonedx-json=./sbom.cdx.jsonScan the images you deploy as well as the repositories. An image shows what actually runs, including packages installed at build time that are not in a lockfile.
Step 2: search the SBOM for MCP packages
Both formats identify a component by its purl: CycloneDX in each component's purl field (CycloneDX 1.6 schema), SPDX 2.3 in a package's externalRefs entry whose referenceType is purl (SPDX 2.3 schema). One regular expression covers all ten SDKs:
RE='^pkg:(npm/(%40|@)modelcontextprotocol/|pypi/mcp(@|$)|maven/io.modelcontextprotocol|nuget/modelcontextprotocol|golang/github.com/modelcontextprotocol/|cargo/rmcp(-macros)?(@|$)|gem/mcp(@|$)|composer/mcp/|swift/github.com/modelcontextprotocol/)'CycloneDX JSON. This walks the whole document, so it also finds components nested inside other components:
jq -r --arg re "$RE" '.. | objects | select(.purl? and (.purl | test($re; "i"))) | .purl' sbom.cdx.jsonSPDX JSON. This prints the package name, version and purl, separated by tabs:
jq -r --arg re "$RE" '.packages[] | . as $p | .externalRefs[]? | select(.referenceType == "purl" and (.referenceLocator | test($re; "i"))) | [$p.name, $p.versionInfo, .referenceLocator] | @tsv' sbom.spdx.jsonA folder of SBOMs, any format, no jq. Useful when SBOMs from many pipelines land in one bucket:
grep -ohE 'pkg:[^"]+' sboms/*.json | grep -iE "$RE" | sort | uniq -c | sort -rnWe tested these commands with jq 1.7 against small CycloneDX 1.6 and SPDX 2.3 files built to each schema. A real SBOM from your generator may differ in detail; if a search finds nothing where you expect a hit, open the file and check how it writes purls.
Step 3: record what each hit means
A package name tells you MCP code is present. It does not tell you the risk. For every hit, write down:
| Record | Why it matters | How to find it |
|---|---|---|
| Server, client or both | A server exposes tools; a client calls other people's servers | The package: TypeScript v2 and PHP split server and client packages; read the code for the others |
| Where it runs | A local server runs on a laptop with the user's access; a deployed server is reachable over the network | stdio means a local subprocess; a URL means Streamable HTTP, "the transport you deploy" (Python SDK README) |
| Tools it exposes | Each tool is an action a model can trigger | Run npx @modelcontextprotocol/inspector --cli <command or URL> --method tools/list (Inspector CLI) |
| Credentials it holds | These decide the blast radius of a misused tool | Environment variables, mounted secrets, the cloud role of the workload it runs on |
| Token handling | Passthrough and wide scopes are named risks | Check that it accepts only tokens issued for it, and which scopes it requests |
| Owner and SDK version | Someone has to patch it | The repository's owners file; the version in the SBOM |
Run the Inspector against a test instance, not production: listing tools is read-only, but calling them is not. Also note that the Inspector stores OAuth tokens and other secrets in the OS keychain where one exists, and otherwise in an unencrypted file unless you supply a key (Inspector README).
What an SBOM search will miss
- Servers built without an official SDK. Third-party frameworks and hand-written protocol code will not match these names.
- Servers started at run time. An MCP client configuration that launches a server with a command such as
npxon a developer's machine fetches the package when it runs, so it is not in your repository's or image's SBOM. - Copied code. Source pasted in from an SDK, rather than installed as a dependency, has no package entry.
Pair the SBOM search with a search of MCP client configuration files on developer machines and in your agent platforms.
AI-BOM and SBOM, briefly
An SBOM lists the software components in a product. An AI bill of materials (AI-BOM) adds the AI parts: models, datasets and the libraries and servers that run them. The standards already have room for it. CycloneDX has a machine-learning-model component type and model cards, and describes its AI/ML-BOM as "model and dataset transparency". SPDX 3.0 has an AI profile for "documenting and sharing information about AI software packages". The purl specification also has huggingface and mlflow types for models (purl types index).
In practice, many teams start an AI-BOM the way this post does: by filtering the SBOMs they already have. Two more searches on the same files:
# models identified by purl
grep -ohE 'pkg:(huggingface|mlflow)/[^"]+' sboms/*.json | sort -u
# CycloneDX components declared as machine-learning models
jq -r '.. | objects | select(.type? == "machine-learning-model") | .name' sbom.cdx.jsonPrint this: the MCP inventory checklist
MCP INVENTORY CHECKLIST
[ ] SBOMs exist for every repository AND every deployed image
[ ] Searched all SBOMs with the MCP SDK pattern (npm, PyPI, Maven,
NuGet, Go, crates.io, RubyGems, Packagist, Swift)
[ ] Each hit marked: server / client / both
[ ] Each server marked: local (stdio) / deployed (HTTP)
[ ] tools/list captured for each server, from a test instance
[ ] Credentials each server holds written down, with their scope
[ ] Checked: accepts only tokens issued for it (no passthrough)
[ ] Checked: no wildcard or "full access" scopes
[ ] Owner and SDK version recorded; v1 TypeScript upgrades planned
[ ] MCP client configs on developer machines reviewed separately
[ ] Re-run on every release, not onceWhere Onam fits (that is us)
Onam builds SBOMs for your repositories and images, and its AI bill of materials picks the AI libraries, model servers and MCP SDKs out of them. Recording what each hit means (Step 3) is still your team's job. It is part of AI-SPM, next to the managed AI services Onam finds on AWS, Azure and Google Cloud through read-only cloud roles. Code security runs static analysis on the code itself in 13 languages. Nine of the ten languages with official MCP SDKs are among them.
- The honest limit: Rust is not one of the 13 languages. If your MCP server is written with the Rust SDK (
rmcp), Onam's static analysis does not check that server's own code.
Our prices are public: $20 per unit a month for Complete, which includes data security; $14 per unit a month for Posture; and $39 per active developer a month for code security, with a 25-unit minimum. There is no time-limited trial. Instead there is a free plan of up to 25 units with API-based scanning only, and a free one-time audit scan of one cloud account.
Frequently asked questions
How do I find MCP servers in my SBOM?
Search the SBOM's package URLs for the official MCP SDK packages, such as @modelcontextprotocol/server on npm, mcp on PyPI and rmcp on crates.io. The jq and grep commands above do this for CycloneDX and SPDX JSON files in one pass.
What is the package name of the MCP Python SDK?
mcp on PyPI. The project's README installs it with uv add "mcp[cli]" or pip install "mcp[cli]".
What is the npm package for the Model Context Protocol SDK?
Version 2 is split into @modelcontextprotocol/server and @modelcontextprotocol/client, plus optional middleware packages. Version 1 is @modelcontextprotocol/sdk, which keeps receiving fixes for at least six months after the v2 release on 27 July 2026.
Which languages have official MCP SDKs?
Ten, as of 28 November 2026: TypeScript, Python, C#, Go, Rust and Ruby (Tier 1), Java (Tier 2), and Swift, PHP and Kotlin (Tier 3).
What is the difference between an AI-BOM and an SBOM?
An SBOM lists software components. An AI-BOM lists the AI parts, such as models, datasets, AI libraries and model servers. CycloneDX and SPDX 3.0 can both describe AI components, and filtering an existing SBOM for AI packages is a practical first AI-BOM.
Is an MCP server a security risk?
It can be, because it lets a model trigger actions with the server's credentials. The MCP project's security best practices name token passthrough, broad scopes and local server compromise as risks. Record each server's tools and credentials so you know what a misused tool could reach.
Where to go next
- What does Onam's AI security cover?AI inventory, the AI bill of materials and guardrail checks, with the limits listed.
- How does Onam's code security work?Static analysis in 13 languages, libraries and SBOMs.
- Gate pipelines on new findings onlyHow to block new risk without failing every build on old debt.
- Run a free audit scanOne read-only scan of one cloud account, no commitment.
Corrections
Package names, tiers and commands above come from the MCP project's own pages and repositories, the package registries, and the Syft, CycloneDX, SPDX and package-url projects, all read on 28 November 2026. SDKs move quickly: check the official SDK list before you rely on the pattern. If anything is wrong or out of date, email hello@onamsecurity.com and it will be corrected.
Try it on your own cloud
Start free. The free plan covers up to 25 units of cloud security, with API-based scanning only: posture (CSPM), identity and permissions (CIEM), data stores found through cloud APIs (DSPM checks, no content classification) and AI-SPM. Posture scanning connects through read-only cloud roles, the free plan deploys no agent or scanner, and no card is needed. Register, and the team emails you the login.