Skip to main content
Glama
packagist-mcp

packagist-mcp

by Ankur1911

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_TRANSPORTNoTransport to use: stdio or streamable-http.stdio
PACKAGIST_RETRIESNoRetries on HTTP 429, 502, 503, 504 and timeouts.2
PACKAGIST_TIMEOUTNoRequest timeout in seconds.20
PACKAGIST_BASE_URLNoPackagist API root (for a mirror).https://packagist.org
PACKAGIST_REPO_URLNoComposer metadata host.https://repo.packagist.org
PACKAGIST_CACHE_TTLNoSeconds to cache identical requests in memory (0 disables).300
PACKAGIST_MAX_CHARSNoResponses longer than this are cut with a notice.20000
PACKAGIST_CONCURRENCYNoMaximum simultaneous requests.4

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

PHP package data from Packagist, the Composer registry. Use search_packages to find a package, get_package for a one-call profile (latest release, licence, dependencies, downloads, advisories, abandoned status), list_versions and get_dependencies for release history and requirements, security_advisories for known vulnerabilities, and audit_requirements to check a whole composer.json (what is outdated, blocked, abandoned or vulnerable). Package names are 'vendor/package'. Read-only, no credentials.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_packagesA

Search Packagist for PHP/Composer packages by keyword. Returns name, short description, repository URL, total downloads, favourites and an abandoned flag (true, or the replacement package name), sorted by relevance. Optional filters: type (e.g. 'library', 'symfony-bundle', 'composer-plugin', 'wordpress-plugin') and tags. Use get_package for the full profile of one result.

get_packageA

One-call profile of a Composer package: description, latest stable version with release date and age in days, any newer pre-release, abandoned status (with replacement), licence, keywords, repository and support links, PHP/extension requirements, runtime dependencies, download totals (total/monthly/daily), version counts and security advisories (total, those affecting the latest stable release, and the most recent). Combines three Packagist endpoints and avoids the very large raw package document. Use list_versions for release history.

list_versionsA

Release history of a package, newest first: version, release date, PHP constraint, and the IDs of any security advisories that affect that exact version (or an abandoned marker). Pre-releases are hidden unless requested. Use it to choose a safe version or to see how often a package ships.

get_dependenciesA

Requirements of one package version: PHP version and extensions (platform), runtime packages (require), conflicts, replaces and provides; require-dev and suggestions with extended=true. Defaults to the latest stable release; pass a version such as '2.9.1' for another. Use it to check PHP compatibility or what installing a package pulls in.

security_advisoriesA

Known security advisories for one or many packages in one call (title, CVE, severity, affected version range, report date, link). Append '@version' to a package, e.g. 'monolog/monolog@2.9.0', and the advisories are split into those that affect that version and a count of others, using Composer's range syntax. Data comes from Packagist's advisory database (GitHub Security Advisories and FriendsOfPHP). An empty result means no known advisories, not proof of safety.

audit_requirementsA

Audit a project's dependencies in one call. Pass the text of a composer.json (or a mapping of package to constraint). For each package it reports the latest stable version, the newest version your constraint allows, whether an update is available or blocked by a major-version constraint, whether the package is abandoned (and its replacement), and known security advisories that affect the newest allowed version. Problem packages are listed first. Platform requirements (php, ext-*) are listed separately. Constraints with branches or aliases (dev-main, 'x as y') are not analysed. It reads constraints, not composer.lock, so installed versions may differ. Capped at 60 packages.

download_statsA

Download counts for a package: all-time, monthly and daily totals plus a time series. Series is for all versions, or one version if given, with daily or monthly points (most recent N). Useful for adoption trends and for how fast a new release is rolling out.

list_packagesA

List package names by vendor ('symfony', 'laravel') or by Composer package type ('phpstan-extension', 'composer-plugin'), with repository URL and abandoned flag. Use it to survey a vendor's packages; for keyword discovery use search_packages.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a clearly distinct aspect of the Packagist domain: search, package profile, versions, dependencies, advisories, project audit, download trends, and vendor/type listing. Although get_package summarizes some data also available from security_advisories or download_stats, its role as a one-call profile is clear and the descriptions explicitly direct agents to the specialized tools for detail.

Naming Consistency4/5

The set is consistently snake_case and mostly follows a verb_noun pattern such as search_packages, get_package, list_versions, get_dependencies, audit_requirements, and list_packages. The two noun-oriented names security_advisories and download_stats are minor deviations but remain readable and predictable.

Tool Count5/5

Eight tools is well-scoped for a read-only package registry server. Each tool covers a meaningful workflow area without excessive fragmentation.

Completeness5/5

The surface covers discovery, package details, release history, dependency inspection, vulnerability lookup, project auditing, download statistics, and vendor/type listing. For a read-only Packagist metadata server, this is a complete lifecycle of information needs with no obvious dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues