search_characters

Pack: rick-and-morty · Endpoint: https://gateway.pipeworx.io/rick-and-morty/mcp

Search Rick and Morty characters by name with optional filters for status (alive/dead/unknown), species (Human/Alien/etc.), and gender. Returns up to 20 matching characters per page with status, species, origin, current location, and episode appearances.

Parameters

NameTypeRequiredDescription
namestringnoCharacter name to search for (partial match, e.g., “rick”, “beth”)
statusstringnoFilter by status: “alive”, “dead”, or “unknown”.
speciesstringnoFilter by species (e.g., “Human”, “Alien”, “Mythological Creature”).
genderstringnoFilter by gender: “female”, “male”, “genderless”, or “unknown”.
pagenumbernoPage number (1-based, default 1). API returns 20 per page.

Example call

Arguments

{
  "name": "rick"
}

curl

curl -X POST https://gateway.pipeworx.io/rick-and-morty/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_characters","arguments":{"name":"rick"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_characters', {
  "name": "rick"
});

More examples

{
  "name": "morty",
  "status": "alive",
  "species": "Human",
  "gender": "male"
}

Response shape

FieldTypeDescription
foundbooleanWhether any characters matched the search
countnumberNumber of matching characters
charactersarrayList of matching characters
hintstringHint message when no results found
totalnumberTotal number of matching characters
pagesnumberTotal number of pages
pagenumberCurrent page number
has_morebooleanWhether there are more pages
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean",
      "description": "Whether any characters matched the search"
    },
    "count": {
      "type": "number",
      "description": "Number of matching characters"
    },
    "characters": {
      "type": "array",
      "description": "List of matching characters",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Character ID"
          },
          "name": {
            "type": "string",
            "description": "Character name"
          },
          "status": {
            "type": "string",
            "description": "Status: alive, dead, or unknown"
          },
          "species": {
            "type": "string",
            "description": "Species name"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Character type/subspecies"
          },
          "gender": {
            "type": "string",
            "description": "Gender"
          },
          "origin": {
            "type": "string",
            "description": "Origin location name"
          },
          "location": {
            "type": "string",
            "description": "Current location name"
          },
          "image": {
            "type": "string",
            "description": "Image URL"
          },
          "episode_count": {
            "type": "number",
            "description": "Number of episodes appeared in"
          },
          "episode_ids": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Episode IDs"
          },
          "url": {
            "type": "string",
            "description": "API URL"
          }
        }
      }
    },
    "hint": {
      "type": "string",
      "description": "Hint message when no results found"
    },
    "total": {
      "type": "number",
      "description": "Total number of matching characters"
    },
    "pages": {
      "type": "number",
      "description": "Total number of pages"
    },
    "page": {
      "type": "number",
      "description": "Current page number"
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether there are more pages"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "rick-and-morty": {
      "url": "https://gateway.pipeworx.io/rick-and-morty/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 26, 2026