Pub.dev MCP Server

Pub.dev MCP Server

Enables AI assistants to search, analyze, and retrieve detailed information about Dart and Flutter packages from pub.dev. Supports package discovery, version management, dependency analysis, and documentation access.

Category
Visit Server

README

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured