Overview

Knot provides an MCP server for the API to allow you to interact with the API via natural language prompting. The MCP server provides a tool for each endpoint on the API, as well as a tool to search these docs themselves, all via natural language prompting. This functionality is particularly useful when integrating Knot for the first time via Knot’s development environment. The MCP server (once installed into your IDE) can allow you to work with the API more quickly. The MCP server for Knot’s API exists at https://docs.knotapi.com/mcp.

Example Use Cases

Use CaseExample Prompt
Create a session"Create a cardswitcher session with external user ID: 123abc and card ID: abc123"
Retrieve available merchants"What merchants are available for the cardswitcher product on iOS?"
Get a public key to encrypt card data"What is the public key I should use to encrypt card data?"

Setup

1

Install the Knot MCP Server

In your terminal, run npx mint-mcp add knot.
2

Enter your API key

When prompted for the basic auth token, enter your API key (likely for the development environment). If you have not already created your API key, you can learn about how to do so here.
3

Add the MCP server Cursor or Claude Desktop

Install the MCP server into Cursor or Claude Desktop, either by following the automatic prompts in your terminal or manually.Cursor (manual): Follow the steps outlined here and paste the JSON generated in your terminal into the mcp.json file inside Cursor.