Skip to main content
Glama
devqxi

Pub.dev MCP Server

by devqxi

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 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

Available Tools

6 tools
check_package_updatesC

Check for updates to a specific package or compare versions

ParametersJSON Schema
NameRequiredDescriptionDefault
packageNameYesName of the package to check for updates
currentVersionNoCurrent version to compare against (optional)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't describe how it worksβ€”e.g., where it checks for updates (e.g., package registry), whether it requires authentication, rate limits, or what the output looks like. This leaves significant gaps for a tool that likely queries external sources.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, clearly stating the core functionality without unnecessary details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of checking package updates (likely involving external APIs) and the lack of annotations and output schema, the description is incomplete. It doesn't cover behavioral aspects like data sources, error handling, or return format, which are crucial for effective tool use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters fully. The description adds no additional meaning beyond what's in the schemaβ€”it doesn't explain the format of 'packageName' (e.g., npm, PyPI) or how 'currentVersion' affects the comparison. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('check for updates', 'compare versions') and identifies the resource ('package'). It distinguishes from some siblings like 'get_documentation_changes' but doesn't explicitly differentiate from 'compare_package_versions' or 'get_package_versions', which appear related.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'compare_package_versions' or 'get_package_versions'. It mentions both checking updates and comparing versions but doesn't clarify the context or prerequisites for these operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

compare_package_versionsC

Compare two versions of a package and show differences

ParametersJSON Schema
NameRequiredDescriptionDefault
packageNameYesName of the package to compare
fromVersionYesSource version to compare from
toVersionYesTarget version to compare to

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool will 'show differences', implying a read-only operation, but doesn't specify what types of differences (e.g., code changes, dependency updates, metadata), the format of the output, or any limitations like rate limits or authentication needs. This leaves significant gaps in understanding how the tool behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded with the core action ('compare') and resource, making it easy to parse. Every part of the sentence earns its place by conveying essential information concisely.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of comparing package versions (which could involve detailed diff outputs) and the lack of annotations and output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., a summary, detailed changes, or error messages), nor does it cover behavioral aspects like performance or constraints. For a tool with no structured output documentation, this leaves the agent with insufficient context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting each parameter's purpose. The description adds no additional semantic context beyond what the schema provides, such as examples of package names or version formats. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'compare' and the resource 'two versions of a package', specifying the action and target. It distinguishes from siblings like 'get_package_info' or 'get_package_versions' by focusing on version differences rather than general info or listing versions. However, it doesn't explicitly differentiate from 'get_documentation_changes', which might also involve version comparisons.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'check_package_updates' or 'get_documentation_changes'. It lacks context about prerequisites, such as needing valid package names or version formats, and doesn't mention any exclusions or specific scenarios where this tool is preferred over others.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_documentation_changesC

Get documentation content and detect changes for a package

ParametersJSON Schema
NameRequiredDescriptionDefault
packageNameYesName of the package to get documentation for
versionNoSpecific version (optional, defaults to latest)
docTypeNoType of documentation to retrieve

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'detect changes,' implying some analysis or comparison, but doesn't explain how changes are detected (e.g., compared to previous versions, over time), what the output includes, or any constraints like rate limits or authentication needs. For a tool with potential complexity in change detection, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence: 'Get documentation content and detect changes for a package.' It is front-loaded with the core purpose and avoids unnecessary words. However, it could be slightly more structured by separating the two functions (getting content and detecting changes) for clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity implied by 'detect changes' and the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'detect changes' entails, the return format, or how results are presented. For a tool that likely involves analysis and comparison, more context is needed to guide the agent effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with clear descriptions for all parameters (packageName, version, docType). The description adds no additional parameter semantics beyond what the schema provides, such as format details or usage examples. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get documentation content and detect changes for a package.' It specifies the verb ('get' and 'detect changes') and resource ('documentation content'), making it clear what the tool does. However, it doesn't explicitly differentiate from sibling tools like 'get_package_info' or 'check_package_updates', which might also involve package information retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'check_package_updates' or 'get_package_info', nor does it specify prerequisites, exclusions, or contexts for usage. This leaves the agent without clear direction on tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_package_infoB

Get detailed information about a Dart/Flutter package from pub.dev

ParametersJSON Schema
NameRequiredDescriptionDefault
packageNameYesName of the package to retrieve information for

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states what the tool does, not how it behaves. It doesn't disclose whether this is a read-only operation, if it requires authentication, rate limits, error conditions, or what format the detailed information returns. The description adds no behavioral context beyond the basic purpose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a single-parameter tool and front-loads the essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what 'detailed information' includes, the response format, potential errors, or behavioral constraints. Given the lack of structured data, the description should provide more context about the tool's operation and outputs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the single 'packageName' parameter adequately. The description doesn't add any parameter-specific details beyond what the schema provides (like examples of package names or format requirements), meeting the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get detailed information'), target resource ('Dart/Flutter package'), and source ('from pub.dev'). It distinguishes from sibling tools like 'get_package_versions' (which focuses on version history) and 'search_packages' (which searches multiple packages).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when detailed package information is needed, but doesn't explicitly state when to use this tool versus alternatives like 'get_package_versions' for version-specific data or 'check_package_updates' for update information. No exclusions or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_package_versionsC

Get all available versions of a package with their release dates

ParametersJSON Schema
NameRequiredDescriptionDefault
packageNameYesName of the package to get versions for
limitNoMaximum number of versions to return (default: 10)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions that versions come 'with their release dates', it doesn't describe important behavioral aspects like whether this is a read-only operation, whether it requires authentication, what format the versions are returned in, whether there's pagination, or any rate limits. For a tool with zero annotation coverage, this represents significant gaps in behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that communicates the core functionality without any wasted words. It's appropriately sized for the tool's purpose and front-loads the essential information. Every word earns its place in conveying what the tool does.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that there are no annotations and no output schema, the description is insufficiently complete. While it states what the tool retrieves, it doesn't describe the return format, what happens when a package doesn't exist, whether there are authentication requirements, or how the versions are ordered. For a tool with zero annotation coverage and no output schema, the description should provide more contextual information about the operation's behavior and results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with both parameters ('packageName' and 'limit') clearly documented in the schema itself. The description doesn't add any meaningful parameter semantics beyond what's already in the schema descriptions. According to the scoring guidelines, when schema_description_coverage is high (>80%), the baseline is 3 even with no param info in the description, which applies here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('all available versions of a package'), including the additional detail of 'with their release dates'. It distinguishes from siblings like 'get_package_info' by focusing specifically on versions rather than general package information. However, it doesn't explicitly differentiate from 'check_package_updates' or 'compare_package_versions', which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'check_package_updates', 'compare_package_versions', and 'get_package_info' available, there's no indication of when this specific version-retrieval tool is appropriate versus those other options. The description simply states what the tool does without contextual usage information.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_packagesB

Search for packages on pub.dev with filters

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query
sortNoSort order for results
pageNoPage number for pagination (default: 1)

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states the basic action without behavioral details. It doesn't disclose rate limits, authentication needs, pagination behavior beyond the 'page' parameter, or what the search results include (e.g., metadata fields). This leaves gaps for an agent to understand operational constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It front-loads the core purpose ('search for packages on pub.dev') and adds a useful qualifier ('with filters'). Every part earns its place, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (search with filters), no annotations, and no output schema, the description is minimally adequate. It covers the basic purpose but lacks details on behavior, output format, or usage context. With schema coverage high, the description meets a baseline but doesn't fully compensate for missing annotations and output information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters ('query', 'sort', 'page') with descriptions and enums. The description adds minimal value by mentioning 'filters', which loosely maps to parameters but doesn't provide additional semantics beyond what the schema specifies. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('search for packages') and target resource ('on pub.dev'), with the addition of 'with filters' hinting at the parameter capabilities. It distinguishes from siblings like 'get_package_info' (specific package details) or 'compare_package_versions' (comparison), though not explicitly. However, it lacks specificity about what 'packages' entails (e.g., Dart/Flutter packages), keeping it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. For example, it doesn't clarify if this is for broad searches versus using 'get_package_info' for known packages, or how it relates to 'check_package_updates' for monitoring changes. The description implies a general search function but offers no context on prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 6 tool updates
    • First observedcheck_package_updates
    • First observedcompare_package_versions
    • First observedget_documentation_changes
    • First observedget_package_info
    • First observedget_package_versions
    • First observedsearch_packages

TDQS

A3.5/5.0
Disambiguation5/5

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).

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devqxi/pubdev-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server