Skip to main content
Glama
dlang-dub-packages-registry-mcp

dlang-dub-packages-registry-mcp

README.md
# dlang-dub-packages-registry-mcp

Live D language DUB package registry metadata over Model Context Protocol (MCP). Systems programmers, build engineers, and supply-chain teams can query `code.dlang.org/api/packages` for DUB package search, version dependencies, license provenance, and download statistics without an API key or account. It connects right away.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

```text
https://dlang-dub-packages-registry-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `search_dub_packages` | Search the official D language DUB package registry by keyword |
| `get_dub_package_info` | Inspect license, authors, source repo, subpackages, and latest dependencies |
| `get_dub_package_latest_version` | Fetch the latest published release version string for a DUB package |
| `get_dub_package_stats` | Get download metrics, repository stars, forks, issues, and quality score |
| `list_dub_package_versions` | List release history with dates, licenses, commit IDs, and dependency counts |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "dlang-dub-packages-registry": {
      "url": "https://dlang-dub-packages-registry-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run this server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `code.dlang.org/api/packages` with a polite `User-Agent` header (`mcpstamp-dlang-dub-packages-registry/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions down to the SDK version cleanly.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.dlang-dub-packages-registry-mcp) with hosted commercial servers and priority endpoints.

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation4/5

Most tools target clearly different needs: search, full metadata, version history, and download stats. However, get_dub_package_latest_version overlaps with both get_dub_package_info (which already includes latest version) and list_dub_package_versions (which likely includes the latest release), creating a mild boundary ambiguity.

Naming Consistency4/5

Names consistently use snake_case and mostly follow a verb_noun pattern around a shared dub_package/package concept. Minor deviations exist: search_dub_packages uses plural 'packages' and a search-first verb, while the others use get_/list_ with singular 'package'.

Tool Count5/5

Five tools is well-scoped for a package registry discovery server, with each tool serving a recognizable lookup purpose. The surface avoids bloat and keeps the agent's choice set small.

Completeness4/5

The set covers the core registry discovery workflow: search, metadata, latest version, version history, and popularity/stats. Minor gaps remain, such as direct package-name lookup without search, category browsing, or download/install guidance, but agents can work around these via search and metadata.