devqxi

Pub.dev MCP Server

Community devqxi
Updated

MCP server that provides comprehensive access to pub.dev, the official package repository for Dart and Flutter.

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

๐Ÿ“ฆ 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

  1. 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
  2. Add:

{
  "mcpServers": {
    "pubdev": {
      "command": "npx",
      "args": ["@devqxi/pubdev-mcp-server"]
    }
  }
}
  1. 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/search
  • https://pub.dev/api/packages/{package}/versions
  • https://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

  1. Fork & branch (git checkout -b feature/amazing-feature)
  2. Install deps (npm install)
  3. Build & test (npm run build && npm test)
  4. Commit & push (git commit -m 'Add feature' && git push)
  5. 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

MCP Server ยท Populars

MCP Server ยท New

    gradion-ai

    ipybox

    A lightweight and secure Python code execution sandbox based on IPython and Docker

    Community gradion-ai
    CrowdStrike

    falcon-mcp

    Connect AI agents to CrowdStrike Falcon for automated security analysis and threat hunting

    Community CrowdStrike
    robotmcp

    ROS MCP Server

    Quickly connect AI agents with Physical Robots (ROS/ROS2) via MCP. No code changes needed in ROS

    Community robotmcp
    seekrays

    SeekCode

    A clean and efficient code snippet and clipboard management tool designed for developers

    Community seekrays
    perplexityai

    Perplexity Ask MCP Server

    A Model Context Protocol Server connector for Perplexity API, to enable web search without leaving the MCP ecosystem.

    Community perplexityai