Skip to main content
Glama

Marvel MCP

by DanWahlin
MIT License
89
7
  • Linux
  • Apple
// src/tools/get_character_by_id/index.ts import { CharacterDataWrapperSchema } from "../schemas.js"; import { httpRequest } from "../../utils.js"; import { GetCharacterByIdSchema } from "./schemas.js"; export const get_character_by_id = { description: `Fetch a Marvel character by ID.`, schema: GetCharacterByIdSchema, handler: async (args: any) => { const argsParsed = GetCharacterByIdSchema.parse(args); const res = await httpRequest(`/characters/${argsParsed.characterId}`); return CharacterDataWrapperSchema.parse(res); } };

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/DanWahlin/marvel-mcp'

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