Appearance
Getting Started
Follow these steps to set up and run the Toqan Apps MCP Server.
Step 1: Install Dependencies
Install the required npm packages:
bash
npm installThis will install:
fastify- Web server framework@modelcontextprotocol/sdk- MCP protocol SDK@fastify/cors- CORS support
Step 2: Start the Server
Start the MCP server:
bash
npm startThe server will start on http://localhost:3000 by default. You should see:
MCP server listening on http://localhost:3000/mcpStep 3: Connect to Your Agent
Configure your Toqan agent to connect to the MCP server:
- MCP Endpoint:
http://localhost:3000/mcp - Protocol: HTTP (StreamableHTTPServerTransport)
The server exposes the following endpoints:
GET /- Health checkPOST /mcp- MCP protocol endpointGET /website.html- Example HTML widget
Verify It's Working
Check the health endpoint:
bashcurl http://localhost:3000/Should return:
MCP server is runningTest the MCP endpoint with your agent or MCP client