Skip to main content

Building Your Own MCP Server

LaunchMyStore provides a built-in HTTP MCP server at https://api.launchmystore.io/mcp. Most users don’t need to build their own — see the MCP Overview for the standard setup.This guide is for developers who want to build a custom MCP server with specialized logic, combine multiple data sources, or run locally.

When to Build Custom

Build your own MCP server when you need to:
  • Combine LaunchMyStore data with other APIs
  • Add custom business logic before returning data
  • Run locally for development/testing
  • Create a white-labeled integration

Prerequisites

  • Node.js 18+
  • A LaunchMyStore MCP token (see the overview — generate one under Settings → AI Connector (MCP) in the admin).
  • Familiarity with TypeScript

Project Setup

Basic Server Structure

Create src/index.ts:

Build and Run

Claude Desktop Configuration

For custom MCP servers using stdio transport:

Adding Custom Logic

You can add business logic that the built-in server doesn’t have:

Testing

Test your server locally with the MCP inspector:

Publishing

Package your server for distribution:

Built-in vs Custom

FeatureBuilt-in HTTP ServerCustom Server
SetupJust add token to configBuild & deploy code
Tools50+ pre-built toolsDefine your own
LogicStandard API responsesCustom business logic
MaintenanceAutomatic updatesYou maintain it
Combine APIsLaunchMyStore onlyAny data source
For most use cases, the built-in MCP server is recommended.

Resources