Skip to main content
Glama
README.md
<div align="center">

# pubdev-mcp

**MCP server for pub.dev — live Dart & Flutter package knowledge for Copilot agent mode and any MCP client.**

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![npm](https://img.shields.io/badge/npm-pubdev--mcp-blue)](https://www.npmjs.com/package/pubdev-mcp)

Zero API keys · Zero config · Node ≥ 18

</div>

---

## What it gives your agent

| Tool | What it does |
|---|---|
| `get_package` | Full package info: description, latest version, homepage, SDK constraints |
| `latest_version` | Latest versions of up to 20 packages at once (dependency bumps) |
| `get_changelog` | The CHANGELOG of a package version — know what changed before upgrading |
| `check_compatibility` | Compare your Flutter/Dart SDK constraints against a package's requirements |
| `pub_score` | pub.dev points, likes, downloads, platform tags — pick the healthy package |
| `search_packages` | Keyword search across pub.dev |

Works in: **GitHub Copilot agent mode** (VS Code, JetBrains), Claude Desktop, Cursor, and any MCP client.

## Install

### VS Code / GitHub Copilot

Add to `.vscode/mcp.json` (workspace) or user settings:

```json
{
  "servers": {
    "pubdev": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "pubdev-mcp"]
    }
  }
}
```

Then in Copilot Chat (agent mode): "#pubdev get_package http" or just ask
"what's the latest version of provider and will it work with my Flutter 3.24?"

### JetBrains (PyCharm / IntelliJ)

`~/.config/github-copilot/intellij/mcp.json`:

```json
{
  "servers": {
    "pubdev": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "pubdev-mcp"]
    }
  }
}
```

### Claude Desktop

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "pubdev": { "command": "npx", "args": ["-y", "pubdev-mcp"] }
  }
}
```

## How it works

Straight HTTP calls to the public pub.dev API — no keys, no scraping, no
rate-limit tricks. Results are formatted as compact markdown so agent
context stays small.

## License

MIT — see [LICENSE](LICENSE).

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a reasonably distinct role: broad lookup (get_package), narrow version check (latest_version), changelog, SDK compatibility, quality metrics, and search. The main overlap is get_package returning version and SDK constraints that latest_version and check_compatibility also provide, but descriptions explicitly steer agents toward the fast/specific variants.

Naming Consistency3/5

Most names follow verb_noun (get_package, get_changelog, check_compatibility, search_packages), but latest_version and pub_score break the pattern with noun-only forms, and verb styles vary (get_ vs check_ vs search_). Readable and mostly predictable, but not fully consistent.

Tool Count5/5

Six tools is well-scoped for a package registry lookup server; each tool corresponds to a distinct lookup need and none feels redundant or filler.

Completeness4/5

Core discovery and evaluation workflows are covered: search, full metadata, versions, changelogs, compatibility, and quality metrics. Minor gaps remain, such as listing all published versions or fetching dependencies/README content, which agents must work around.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues