Skip to main content
Glama

Mercado Livre MCP Server

MercadoLivreToolsController.ts950 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { MercadoLivreService } from '../../application/services/MercadoLivreService.js'; export class MercadoLivreToolsController { constructor( private server: McpServer, private service: MercadoLivreService, ) { this.registerTools(); } private registerTools() { this.registerGetStockToolHandler(); } private registerGetStockToolHandler(): void { this.server.tool( 'get-produtos', 'Buscar informações básicas de produtos', { products: z.array(z.string()).describe('Array of product names'), }, async ({ products }) => { const infos = await this.service.getProducts(products); return { content: [ { type: 'text', text: JSON.stringify(infos, null, 2), }, ], }; }, ); } }

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/newerton/mcp-mercado-livre'

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