WORLDBOOK

Worldbooks | WebMCP | Search | Submit WebMCP

pypi WebMCP

Browser tool configuration for pypi

URL Pattern: ^https?://pypi\.org(/.*)?$
Allowed Extra Domains: pypi.org

Tools (2)

pypi_package()

获取 Python 包详情

Parameters

name string - 包名

JavaScript Handler

(params) => {
  const run = async function(args) {

      const name = args.name || args._text;
      if (!name) return {error: 'Missing package name. Usage: bb-browser site pypi/package "PACKAGE_NAME"'};
      const url = `https://pypi.org/pypi/${encodeURIComponent(name)}/json`;
      const resp = await fetch(url);
      if (!resp.ok) return {error: 'HTTP ' + resp.status};
      const data = await resp.json();
      const info = data.info || {};
      return {
        name: info.name,
        version: info.version,
        summary: info.summary,
        author: info.author,
        author_email: info.author_email,
        license: info.license,
        home_page: info.home_page,
        project_url: info.project_url,
        package_url: info.package_url,
        requires_python: info.requires_python,
        keywords: info.keywords,
        classifiers: info.classifiers,
        project_urls: info.project_urls,
        requires_dist: info.requires_dist
      };
  };
  return run(params || {});
}

pypi_search()

搜索 Python 包

Parameters

query string - 搜索关键词
page string - 页码(默认 1)

JavaScript Handler

🔌 Chrome MCP Server Extension

Use these tools with Claude, ChatGPT, and other AI assistants.

Get Extension →

How to Use WebMCP

WebMCP tools are designed for browser extensions or automation frameworks. The browser extension matches the current URL against the pattern and executes the JavaScript handler when the tool is invoked.

API Endpoint:

GET /api/webmcp/match?url=https://www.pypi.com/...