Skip to main content
Glama

Omnisend MCP Server

index.ts2.9 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export const registerProductsResource = (server: McpServer) => { server.resource( 'Product schema', 'product://schema', { type: 'Product schema', description: 'Represents a product in the Omnisend catalog.', fields: { productID: { type: 'string', description: 'Unique identifier of the product' }, title: { type: 'string', description: 'Product title' }, status: { type: 'string', description: 'Product status: draft, active, archived' }, description: { type: 'string', description: 'Product description' }, currency: { type: 'string', description: 'Currency code for product price' }, price: { type: 'number', description: 'Product price' }, oldPrice: { type: 'number', description: 'Old product price (before discount)' }, productUrl: { type: 'string', description: 'URL to the product page' }, imageUrl: { type: 'string', description: 'URL to the product image' }, vendor: { type: 'string', description: 'Product vendor/brand' }, variants: { type: 'array', description: 'Product variants with different sizes, colors, etc.' }, createdAt: { type: 'string', description: 'Date when the product was created' }, updatedAt: { type: 'string', description: 'Date when the product was last updated' } } }, async (uri) => { const schema = { type: 'Product schema', description: 'Represents a product in the Omnisend catalog.', fields: { productID: { type: 'string', description: 'Unique identifier of the product' }, title: { type: 'string', description: 'Product title' }, status: { type: 'string', description: 'Product status: draft, active, archived' }, description: { type: 'string', description: 'Product description' }, currency: { type: 'string', description: 'Currency code for product price' }, price: { type: 'number', description: 'Product price' }, oldPrice: { type: 'number', description: 'Old product price (before discount)' }, productUrl: { type: 'string', description: 'URL to the product page' }, imageUrl: { type: 'string', description: 'URL to the product image' }, vendor: { type: 'string', description: 'Product vendor/brand' }, variants: { type: 'array', description: 'Product variants with different sizes, colors, etc.' }, createdAt: { type: 'string', description: 'Date when the product was created' }, updatedAt: { type: 'string', description: 'Date when the product was last updated' } } }; return { contents: [{ uri: uri.href, mimeType: 'application/json', text: JSON.stringify(schema, 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/plutzilla/omnisend-mcp'

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