Skip to main content
Glama
Deconstruct2021

cryptopunks-mcp-server

get_punk_metadata

Retrieve accurate CryptoPunk metadata including type classification (Male/Female/Alien/Ape/Zombie), attributes array, and attribute count for any punk index.

Instructions

Get lightweight metadata for a CryptoPunk: type, type name, attributes array, and attribute count. This is the most reliable endpoint for accurate type classification (Male/Female/Alien/Ape/Zombie).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
punk_indexYesCryptoPunk index (0–9999)

Implementation Reference

  • The actual implementation of the tool, which makes a GET request to the CryptoPunks API.
    export async function getPunkMetadata(punkIndex: number) {
      return get(DATA_BASE, `/api/punks/${punkIndex}/metadata`);
    }
  • The MCP tool handler that invokes `api.getPunkMetadata`.
    case "get_punk_metadata": {
      const result = await api.getPunkMetadata(args.punk_index);
      return ok(result);
  • src/tools.ts:46-48 (registration)
    The definition and registration of the 'get_punk_metadata' tool.
    get_punk_metadata: {
      description:
        "Get lightweight metadata for a CryptoPunk: type, type name, attributes array, and attribute count. This is the most reliable endpoint for accurate type classification (Male/Female/Alien/Ape/Zombie).",

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/Deconstruct2021/cryptopunks-mcp-server'

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