{
  "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
  "version": "1.0",
  "protocolVersion": "2025-11-25",
  "serverInfo": {
    "name": "design-extractor",
    "version": "0.1.0",
    "title": "Design Extractor"
  },
  "description": "Turn a public website URL into a DESIGN.md design system for AI coding agents.",
  "iconUrl": "https://www.design-extractor.com/web-app-manifest-512x512.png",
  "documentationUrl": "https://www.design-extractor.com/docs/mcp",
  "transport": {
    "type": "streamable-http",
    "endpoint": "/api/mcp"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false
    }
  },
  "authentication": {
    "required": true,
    "schemes": [
      "oauth2",
      "bearer"
    ]
  },
  "instructions": "Design Extractor turns a public web page into a DESIGN.md: a Markdown design system with the site's colors, typography, spacing, shapes and component rules, ready for an agent's context.\n\nTiers: LITE extracts the single page you name. PRO samples the whole site and costs more. Lite and Pro cost credits; call get_pricing for the current numbers and get_credits for your balance. Credits are bought at https://www.design-extractor.com/pricing.\n\nFlow: call extract_design with a URL and an optional tier to start a run. Tell the user it takes at least a minute, wait about 60 seconds, then call get_extraction with the site (the name or URL the user used, no ids needed) every 25 seconds until the status is COMPLETED, which returns the DESIGN.md, or FAILED, which explains why. Never ask the user for a publicId: get_extraction resolves the site to their newest extraction of it, and list_my_extractions shows what is already there so credits are not spent twice.",
  "tools": [
    {
      "name": "get_pricing",
      "title": "Get pricing",
      "description": "Current credit cost of each extraction tier (LITE, PRO) and the credits a new account is granted. When extraction from another country is offered, countryRouting holds the surcharge per tier and the country codes. Read-only, spends nothing. Call it before extract_design when the cost matters.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_credits",
      "title": "Get credits",
      "description": "Your current credit balance and what each tier costs you. Read-only, spends nothing. Credits never renew; buy a pack on the pricing page when the balance runs out.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "extract_design",
      "title": "Extract design",
      "description": "Start extracting the design system of a public web page into a DESIGN.md. Spends credits: LITE (default) extracts the single page for fewer credits, PRO samples the whole site for more. Call get_pricing for the current cost and get_credits for your balance. Answers immediately; a run takes at least a minute, so tell the user, wait about 60 seconds, then call get_extraction with the site every 25 seconds until it is COMPLETED or FAILED. A URL you extracted recently is reused without a new charge; the same URL extracted only by other users still costs its tier price. Pass country only to retry a run that failed with a regional restriction.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "url": {
            "type": "string",
            "minLength": 1,
            "description": "Public web page to extract, for example https://stripe.com. A missing scheme defaults to https."
          },
          "tier": {
            "default": "LITE",
            "description": "LITE extracts the single page and costs fewer credits. PRO samples the whole site and costs more credits.",
            "type": "string",
            "enum": [
              "LITE",
              "PRO"
            ]
          },
          "country": {
            "description": "Two-letter country code (ISO 3166-1 alpha-2, for example de) to load the site through a browser in that country. Use it only after a run of this URL failed with a regional restriction (GEO_BLOCKED, or a failure that lists suggestedCountries), and prefer a suggested country. A country run costs the tier price plus a surcharge; get_pricing lists both and the countries under countryRouting.",
            "type": "string",
            "pattern": "^[a-zA-Z]{2}$"
          }
        },
        "required": [
          "url"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      }
    },
    {
      "name": "get_extraction",
      "title": "Get extraction",
      "description": "The extraction of a site: pass the site the user named (stripe, stripe.com, a full URL) and it resolves to your newest extraction of it, or pass a publicId. While QUEUED or RUNNING it reports the stage; a run takes a minute or more, so wait about 60 seconds after extract_design and then call again every 25 seconds. When COMPLETED it returns the DESIGN.md text (long documents are cut at 80,000 characters with a link to the full version on the site). When FAILED it explains why and what to try next. Read-only, spends nothing.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "site": {
            "description": "The site the user named, for example stripe, stripe.com or https://www.stripe.com. Resolves to your newest extraction of it. Prefer this over publicId.",
            "type": "string",
            "minLength": 1
          },
          "publicId": {
            "description": "The publicId answered by extract_design or listed by list_my_extractions, when you have one.",
            "type": "string",
            "minLength": 1
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "list_my_extractions",
      "title": "List my extractions",
      "description": "Your extraction library, newest first: publicId, url, tier, status, createdAt and the site link per item, plus a cursor for the next page. Use it to find a publicId for get_extraction instead of extracting the same site again. Read-only, spends nothing.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "limit": {
            "default": 20,
            "description": "How many extractions to return, newest first (1 to 50).",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "cursor": {
            "description": "The nextCursor of the previous page.",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ],
  "resources": [
    "dynamic"
  ],
  "_meta": {
    "com.design-extractor/resourceTemplates": [
      {
        "name": "designmd",
        "uriTemplate": "designmd://{publicId}",
        "title": "DESIGN.md",
        "description": "The DESIGN.md of one of your completed extractions, by publicId (the same document get_extraction returns).",
        "mimeType": "text/markdown"
      }
    ]
  }
}