home / mcp / pubdev mcp server

PubDev MCP Server

Provides natural language pub.dev search and basic arithmetic capabilities for intuitive package discovery.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "kikuchy-pubdev_mcp": {
      "command": "dart",
      "args": [
        "[path-to-repo]/bin/pubdev_mcp.dart"
      ]
    }
  }
}

This MCP lets you search pub.dev packages using natural language queries and perform basic arithmetic calculations within conversations. It enables intuitive package discovery powered by an embedded language model, making it easy to find and evaluate packages through natural prompts.

How to use

You connect to the PubDev MCP server through an MCP client and start a conversational session. Ask for package recommendations with natural language, for example “Find Dart packages for HTTP handling” or “Show me lightweight pub.dev packages for JSON parsing.” The MCP will interpret your intent, search pub.dev, and return relevant packages along with suggested options. You can refine results by asking follow-up questions or requesting more details about each package.

How to install

Prerequisites: you need the Dart SDK. Flutter is recommended but not strictly required for the MCP server.

1. Clone the repository.

2. Install dependencies.

3. Configure the MCP server connection.

4. Start using the MCP via your client.

Configuration and startup details

To run the PubDev MCP locally, configure a standard MCP server entry that launches the Dart script from the cloned repository. The recommended runtime is Dart executing the PubDev MCP script.

{
  "mcpServers": {
    "PubDev MCP": {
      "command": "dart [path-to-repo]/bin/pubdev_mcp.dart",
      "workingDirectory": "[path-to-repo]"
    }
  }
}

Notes

Ensure you replace [path-to-repo] with the actual path to your cloned repository. The MCP server in this configuration runs as a local process via Dart and does not require a remote URL.

Available tools

nlp_search

Performs natural language queries against pub.dev and returns relevant package results with recommendations.

calculate

Evaluates basic arithmetic expressions encountered during conversations.