Pub.dev MCP Server
The Pub.dev MCP Server enables AI assistants to interact with pub.dev to search, analyze, and retrieve comprehensive information about Dart and Flutter packages.
Search Packages: Find packages using advanced filtering and sorting options (by popularity, likes, update time, etc.)
Retrieve Package Information: Get detailed metadata, dependencies, statistics, and publisher information for specific packages
Check for Updates: Verify if a package has available updates against a specified current version
Access Version History: Fetch complete version history with release dates
Retrieve Documentation: Access README, changelog, examples, and API documentation for any package version
Compare Package Versions: Analyze differences in dependencies and other changes between two package versions
Provides tools for searching, analyzing, and retrieving detailed information about Dart packages from pub.dev, including package metadata, dependencies, version management, and documentation access.
Provides tools for searching, analyzing, and retrieving detailed information about Flutter packages from pub.dev, including package metadata, dependencies, version management, and documentation access.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pub.dev MCP Server search for state management packages sorted by popularity"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pub.dev MCP Server
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
Related MCP server: Maven Package README MCP Server
📦 Installation
NPM (Recommended)
npm install -g @devqxi/pubdev-mcp-serverFrom 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.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
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 |
|
search_packages | Search with filters and sorting |
|
check_package_updates | Check if updates are available |
|
get_package_versions | Get version history |
|
get_documentation_changes | Get README, changelog, examples, API docs |
|
compare_package_versions | Compare dependencies & changes between versions |
|
📖 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 startTest 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
Available Tools
6 toolscheck_package_updatesC
Check for updates to a specific package or compare versions
Inputs: packageName (required), currentVersion.
compare_package_versionsC
Compare two versions of a package and show differences
Inputs: packageName (required), fromVersion (required), toVersion (required).
get_documentation_changesC
Get documentation content and detect changes for a package
Inputs: packageName (required), version, docType.
get_package_infoB
Get detailed information about a Dart/Flutter package from pub.dev
Inputs: packageName (required).
get_package_versionsC
Get all available versions of a package with their release dates
Inputs: packageName (required), limit.
search_packagesB
Search for packages on pub.dev with filters
Inputs: query (required), sort, page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: checking updates, comparing versions, getting documentation changes, retrieving package info, listing versions, and searching packages. The descriptions make it easy to differentiate between tools like 'check_package_updates' (for update status) and 'compare_package_versions' (for version differences).
All tool names follow a consistent verb_noun pattern with snake_case, such as 'check_package_updates', 'get_package_info', and 'search_packages'. This uniformity makes the tool set predictable and easy to navigate without any deviations in naming conventions.
With 6 tools, the server is well-scoped for its purpose of interacting with pub.dev packages. Each tool serves a specific function in package management, from discovery to version analysis, without feeling too sparse or overloaded. This count aligns with typical MCP server ranges for focused domains.
The tool set covers core workflows for package discovery, information retrieval, and version analysis effectively. Minor gaps exist, such as the lack of tools for publishing packages or managing dependencies, but agents can still perform essential tasks like searching, comparing, and monitoring updates without significant hindrance.
Maintenance
Related MCP Connectors
Package intelligence for AI agents across npm, PyPI, crates.io and deps.dev. No API keys.
Package intelligence for AI agents across npm, PyPI, crates.io and deps.dev. No API keys.
Real-time Python package and vulnerability data for AI coding agents.
Dive into the world of npm with our NPM Package Info MCP. Access crucial metadata about any npm
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search documentation of packages and services to find implementation details, examples, and specifications.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to fetch comprehensive information about Maven packages from Maven Central, including README content, package metadata, dependencies, and search functionality with GitHub integration.8 npmMIT
- AlicenseAqualityDmaintenanceIntegrates the Pub.dev API with AI assistants to provide real-time Flutter package information, documentation, and trend analysis. It enables users to search for packages, compare versions, and evaluate quality scores through natural language commands.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and retrieve detailed package information from multiple package registries (NPM, crates.io, NuGet, PyPI, Go).5,758 npmMIT