MCP server exposing Harry Potter and Octodex API tools

MCP server exposing Harry Potter and Octodex API tools

octocat-harry-potter-mcp-server•byjonico

A generated MCP server that offers tools for querying Harry Potter characters and spells plus Octocat images, runnable locally, in Docker, or with SSE support.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Exposes Harry Potter API tools including listing Hogwarts staff, fetching spells, listing students, getting characters by house, and getting all characters.
  • •Offers an Octodex tool to fetch Octocats.
  • •Can run as an MCP server with Server-Sent Events support via a flag, including in Docker.
  • •Provides a command to list descriptions and parameters of all generated tools.

BEST FOR

  • •Testing MCP server capabilities with example prompts and visualizations.
  • •Integrating Harry Potter and Octodex API tools into MCP-compatible clients like Claude Desktop, Postman, or VS Code.

ABOUT OCTOCAT-HARRY-POTTER-MCP-SERVER

MCP server exposing Harry Potter and Octodex API tools is cataloged as an MCP server attributed to jonico. A generated MCP server that offers tools for querying Harry Potter characters and spells plus Octocat images, runnable locally, in Docker, or with SSE support. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server exposing Harry Potter and Octodex API tools are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server require API keys for the Harry Potter and Octocat tools?

No, the README states environment variables are not needed for the octocat and Harry Potter API.

Can more tools be added to the server?

Yes, new tools can be generated with the Postman Agent Generator, copied into the tools folder, and referenced in tools/paths.js.

Upstream README

View this exact version on GitHub

README.md · 22648ea0ee71 · Fetched 2026-11-13 11:04:21 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Workshop slides:

https://drive.google.com/drive/folders/1CQaKkrcuD8Vxam559EEdCByX0z2s-Oxc?usp=sharing

Postman Agent Generator

Welcome to your generated agent! 🚀

This project was created with the Postman Agent Generator, configured to Model Context Provider (MCP) Server output mode. It provides you with:

  • ✅ An MCP-compatible server (mcpServer.js)
  • ✅ Automatically generated JavaScript tools for each selected Postman API request

Let's set things up!

🚦 Getting Started

⚙️ Prerequisites

Before starting, please ensure you have:

📥 Installation & Setup

1. Install dependencies

Run from your project's root directory:

npm install

🔐 Set tool environment variables (not needed for octocat and harry potter api)

In the .env file, you'll see environment variable placeholders, one for each workspace that the selected tools are from. For example, if you selected requests from 2 workspaces, e.g. Acme and Widgets, you'll see two placeholders:

ACME_API_KEY=
WIDGETS_API_KEY=

Update the values with actual API keys for each API. These environment variables are used inside of the generated tools to set the API key for each request. You can inspect a file in the tools directory to see how it works.

// environment variables are used inside of each tool file
const apiKey = process.env.ACME_API_KEY;

Caveat: This may not be correct for every API. The generation logic is relatively simple - for each workspace, we create an environment variable with the same name as the workspace slug, and then use that environment variable in each tool file that belongs to that workspace. If this isn't the right behavior for your chosen API, no problem! You can manually update anything in the .env file or tool files to accurately reflect the API's method of authentication.

🛠️ List Available Tools

List descriptions and parameters from all generated tools with:

node index.js tools

Example:

Available Tools:

Workspace: 6-harry-potter-api-with-magic-visualizations
  Collection: hogwarts-staff.js
    get_hogwarts_staff
      Description: Retrieve all Hogwarts staff characters.
      Parameters:

  Collection: spells.js
    fetch_spells
      Description: Fetch spells from the Harry Potter API.
      Parameters:

  Collection: hogwarts-students.js
    get_hogwarts_students
      Description: Fetch all Hogwarts students from the Harry Potter API.
      Parameters:

  Collection: characters-in-house.js
    get_characters_in_house
      Description: Retrieve characters from a specific Hogwarts house.
      Parameters:
        - house: The name of the Hogwarts house to retrieve characters from.

  Collection: all-characters.js
    get_all_characters
      Description: Retrieve all characters from the Harry Potter API.
      Parameters:


Workspace: 7-git-hub-octodex-postbot
  Collection: build-your-own-octodex-api.js
    fetch_octocats
      Description: Fetch Octocats from the Octodex API.
      Parameters:

🌐 Running the MCP Server

The MCP Server (mcpServer.js) exposes your automated API tools to MCP-compatible clients, such as Claude Desktop or the Postman Desktop Application.

  1. Find node path:
which node
  1. Find mcpServer.js path:
realpath mcpServer.js

A) 🖥️ Run with Postman

The Postman Desktop Application is the easiest way to run and test MCP servers.

Step 1: Download the latest Postman Desktop Application from https://www.postman.com/downloads/ or install the latest Postman Desktop Agent to work with Postman in your browser.

Step 2: Fork or modify the Octodex-HP-MCP Server Postman Collection from here and adjust the Octodex & HP Local Node server settings to point to your local MCP server:

Image

B) 👩‍💻 Run with Claude Desktop

To integrate with Claude Desktop:

Open Claude Desktop → Settings → Developers → Edit Config and add your server:

{
  "mcpServers": {
    "octocat-hp-mcp-server-local": {
      "command": "<absolute_path_to_node>",
      "args": ["<absolute_path_to_mcpServer.js>"]
    }
  }
}

e.g.

{
  "mcpServers": {
    "octocat-hp-mcp-server-local": {
      "command": "/usr/local/bin/node",
      "args": ["/Users/yourusername/octocat-harry-potter-mcp-server/mcpServer.js"]
    }
  }
}

Restart Claude Desktop to activate this change.

C) 🏃‍♂️ Run MCP Server in VSCode

In order to run the local MCP server in VSCode, you can adapt and start the octocat-hp-mcp-server-local server in the .vscode folder.

If you then select Agent mode in Co-Pilot Chat, the tools icon should should show API endpoints (tools) exposed by the octocat-hp-mcp-server-local server.

Additional Options

🐳 Docker Deployment (Production)

For production deployments, you can use Docker:

1. Build Docker image

docker build -t octocat-hp-mcp-server .

Add your environment variables (API keys, etc.) inside the .env file.

Test it locally:

docker run -i --rm --env-file .env octocat-hp-mcp-server

2. Claude Desktop Integration

Add Docker server configuration to Claude Desktop (Settings → Developers → Edit Config):

{
  "mcpServers": {
    "octocat-hp-mcp-server-docker": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--env-file=.env", "octocat-hp-mcp-server"]
    }
  }
}

3. VS Code Integration

In order to run the Docker MCP server in VSCode, you can adapt and start the octocat-hp-mcp-server-docker server in the .vscode folder.

If you then select Agent mode in Co-Pilot Chat, the tools icon should should show API endpoints (tools) exposed by the octocat-hp-mcp-server-docker server.

🌐 Server-Sent Events (SSE)

To run the server with Server-Sent Events (SSE) support, use the --sse flag:

node mcpServer.js --sse

To run with SSE in Docker and expose on port 9000:

docker run  -i --rm  -p 9000:9000 --env-file .env octocat-hp-mcp-server node mcpServer.js --sse

This will start the server in the background, mapping port 9000 on your host to port 9000 in the container, and enable SSE support.

🐳 Dockerfile (Included)

The project comes bundled with the following minimal Docker setup:

FROM node:22.12-alpine AS builder

WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install

COPY . .

ENTRYPOINT ["node", "mcpServer.js"]

➕ Adding New Tools

Extend your agent with more tools easily:

  1. Visit Postman Agent Generator.
  2. Pick new API request(s), generate a new agent, and download it.
  3. Copy new generated tool(s) into your existing project's tools/ folder.
  4. Update your tools/paths.js file to include new tool references.

Example prompts and visualizations

prompts.md has some example prompts how to test the capabilities of the MCP server, which lead to visualizations like this

image

💬 Questions & Support

Visit the Postman Agent Generator page for updates and new capabilities.

Visit the Postman Community to share what you've built, ask questions and get help.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server exposing Harry Potter and Octodex API tools from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/octocat-harry-potter-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent