Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

list_marketplaces

Retrieve available e-commerce marketplaces integrated with ShipStation to manage orders and shipments across platforms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the 'list_marketplaces' tool logic. It calls shipStationClient.getMarketplaces() and returns the marketplaces as JSON or an error message.
    handler: async () => {
      try {
        const marketplaces = await shipStationClient.getMarketplaces();
        return {
          content: [{ type: "text", text: JSON.stringify(marketplaces, null, 2) }]
        };
      } catch (error) {
        return {
          content: [{ type: "text", text: error.message }],
          isError: true
        };
      }
    }
  • src/server.js:174-191 (registration)
    The registration code that spreads the storeTools array (containing list_marketplaces) and registers all tools with the MCP server using server.tool().
    [
      ...orderTools,
      ...shipmentTools,
      ...carrierTools,
      ...warehouseTools,
      ...productTools,
      ...customerTools,
      ...storeTools,
      ...webhookTools,
      ...fulfillmentTools
    ].forEach(tool => {
      server.tool(
        tool.name,
        tool.schema,
        tool.handler,
        { description: tool.description }
      );
    });
  • The helper method on ShipStationClient that makes the API request to fetch marketplaces, called by the tool handler.
    async getMarketplaces() {
      return this.request('GET', '/stores/marketplaces');
    }

Latest Blog Posts

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/mattcoatsworth/shipstation-mcp-server'

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