pub.dev
FreeNot checkedIntegrates with pub.dev to enable package discovery, version management, dependency analysis, and documentation retrieval for Dart and Flutter development workf
About
Integrates with pub.dev to enable package discovery, version management, dependency analysis, and documentation retrieval for Dart and Flutter development workflows.
README
A Model Context Protocol (MCP) server for pub.dev, the official package repository for Dart and Flutter.
It allows AI assistants to search, analyze, and retrieve detailed information about Dart/Flutter packages.
✨ Features
- 🔍 Package Search – Advanced filtering & sorting
- 📦 Package Information – Metadata, dependencies, statistics
- 🔄 Version Management – Check updates, compare versions, track history
- 📚 Documentation Access – README, changelog, examples, API docs
- ⚡ Caching – Built-in 5-minute intelligent cache
- 🛠 Dependency Analysis – Compare dependencies between versions
📦 Installation
NPM (Recommended)
npm install -g @devqxi/pubdev-mcp-server
From Source
git clone https://github.com/devqxi/pubdev-mcp-server.git
cd pubdev-mcp-server
npm install
npm run build
npm run start
⚙️ Configuration
Claude Desktop
Locate your configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
Add:
{
"mcpServers": {
"pubdev": {
"command": "npx",
"args": ["@devqxi/pubdev-mcp-server"]
}
}
}
- Restart Claude Desktop.
Local Build Example:
{
"mcpServers": {
"pubdev": {
"command": "node",
"args": ["/path/to/pubdev-mcp-server/dist/pubdev-mcp.js"]
}
}
}
Other MCP Clients:
npx @devqxi/pubdev-mcp-server
🛠 Available Tools
| Tool | Description | Key Parameters |
|---|---|---|
| get_package_info | Retrieve package metadata, stats, dependencies, publishers | packageName |
| search_packages | Search with filters and sorting | query, sort, page |
| check_package_updates | Check if updates are available | packageName, currentVersion |
| get_package_versions | Get version history | packageName, limit |
| get_documentation_changes | Get README, changelog, examples, API docs | packageName, version, docType |
| compare_package_versions | Compare dependencies & changes between versions | packageName, fromVersion, toVersion |
📖 Example Commands
Search Packages
"Search for state management packages sorted by popularity"Package Details
"Get information about the flutter_bloc package"Check Updates
"Check if provider has updates from version 6.0.0"Get Docs
"Get the changelog for dio version 4.0.0"Compare Versions
"Compare dependencies between http 2.0.0 and 3.0.0"
💻 Development
git clone https://github.com/devqxi/pubdev-mcp-server.git
cd pubdev-mcp-server
npm install
npm run build
npm run start
Test with MCP Inspector:
npx @modelcontextprotocol/inspector npx @devqxi/pubdev-mcp-server
🌐 API Reference
https://pub.dev/api/packages/{package}https://pub.dev/api/searchhttps://pub.dev/api/packages/{package}/versionshttps://pub.dev/packages/{package}/{version}/{doc-type}
🛡 Error Handling
- Graceful handling of network & API failures
- Clear errors for invalid/non-existent packages
- Built-in delays for respectful rate limiting
- Detailed validation messages for malformed requests
🤝 Contributing
- Fork & branch (
git checkout -b feature/amazing-feature) - Install deps (
npm install) - Build & test (
npm run build && npm test) - Commit & push (
git commit -m 'Add feature' && git push) - Open a Pull Request
📜 License
MIT – See LICENSE
📢 Support
🆕 Changelog
v1.0.0
- Initial release
- All major pub.dev API endpoints supported
- Caching & error handling implemented
- Full MCP protocol compliance
Install pub.dev in Claude Desktop, Claude Code & Cursor
unyly install pub-devInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add pub-dev -- npx -y @devqxi/pubdev-mcp-serverStep-by-step: how to install pub.dev
FAQ
Is pub.dev MCP free?
Yes, pub.dev MCP is free — one-click install via Unyly at no cost.
Does pub.dev need an API key?
No, pub.dev runs without API keys or environment variables.
Is pub.dev hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install pub.dev in Claude Desktop, Claude Code or Cursor?
Open pub.dev on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare pub.dev with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
