pubdev-mcp
<div align="center">
# pubdev-mcp
**MCP server for pub.dev — live Dart & Flutter package knowledge for Copilot agent mode and any MCP client.**
[](LICENSE)
[](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
Scored across 6 tools
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.
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.
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.
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.