> ## Documentation Index
> Fetch the complete documentation index at: https://takeprofit.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server Setup Guide

## What is the TakeProfit MCP Server?

LLMs can now write, convert, validate, and explain Indie code using the **TakeProfit MCP Server**.

<video
  autoPlay
  muted
  loop
  playsInline
  className="w-full rounded-2xl"
  style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
  src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/Claude_example.mp4"
/>

**Get AI-Powered Indie Development Help:**

* Ask LLM to write complete indicators from scratch based on your trading ideas
* Get explanations of complex algorithm combinations and how they work together

### Discover Indicators

* Search the community **Marketplace** for published indicators by name or description — the LLM can recommend an existing indicator instead of writing one from scratch
* Search **built-in indicators** by name, title, or abbreviation

**Interactive Learning:**

* Ask "how would I implement X indicator?" and get working code examples
* Understand the logic behind technical analysis through code explanations
* Learn Indie best practices through AI-guided development

**Examples:**

* "Create a momentum indicator that combines RSI and MACD divergence"
* "Help me build a support/resistance detector using price action"
* "Explain how to implement a custom volatility-based stop loss"
* "Write an indicator that detects chart patterns like triangles"

## Step-by-Step Setup Instructions

<Tabs>
  <Tab title="Claude">
    ### Claude and Claude Desktop integration

    #### Step 1: Add custom connector

    1. [Download, install & sign in / sign up to Claude Desktop](https://www.anthropic.com/claude) or login using [web-interface of Claude](https://claude.ai/)

    2. Go to Settings -> Connectors in [Claude](https://claude.ai/settings/connectors) or Claude Desktop and click "Add custom connector"

    3. Enter the `TakeProfit` name and url `https://mcp.takeprofit.com/mcp`

           <img src="https://mintcdn.com/takeprofit-a5dc0462/ez0HV0EYm4Oh5HIq/images/indie/Mcp-server/01_Claude_Add_Connectors.png?fit=max&auto=format&n=ez0HV0EYm4Oh5HIq&q=85&s=e656663026d40cebe0186262ddafdd27" alt="Add custom connector to claude" width="2160" height="1200" data-path="images/indie/Mcp-server/01_Claude_Add_Connectors.png" />

    4. Press `Configure` button for new connector, make sure all the tools are turned on and choose `Allow unsupervised` for all tools

           <img src="https://mintcdn.com/takeprofit-a5dc0462/ez0HV0EYm4Oh5HIq/images/indie/Mcp-server/02_Claude_Configure_Connectors.png?fit=max&auto=format&n=ez0HV0EYm4Oh5HIq&q=85&s=23957b10612b5f46fba3d8c539798901" alt="Enable tools and allow unsupervised" width="2160" height="1200" data-path="images/indie/Mcp-server/02_Claude_Configure_Connectors.png" />

    #### Step 2: Verify Functionality

    1. Exit the settings and return to the chat window
    2. Ask to `get the Indie docs TOC using TakeProfit MCP` or to `generate SMA indicator in Indie language and validate this using TakeProfit MCP` and watch the AI execute the technical workflow for you.
  </Tab>

  <Tab title="Claude Сode">
    ### Claude code CLI integration

    *MacOS/Linux only, Claude code is not supported on Windows yet*

    #### Step 1: Install NodeJS 18+ if it is not already installed

    1. Go to the official Node.js website: [https://nodejs.org/en/download/](https://nodejs.org/en/download/)
    2. Download the LTS (Long-Term Support) version for your operating system — it's the stable version recommended for most users
    3. Run the installer — no need to change settings during installation

    > You can ignore the PowerShell window that may appear and close itself after installation. If in doubt, restart your computer and continue.

    #### Step 2: Install claude code

    Run in the terminal: `npm install -g @anthropic-ai/claude-code`

    #### Step 3: Add the integration

    Execute the command `claude mcp add --transport http takeprofit https://mcp.takeprofit.com/mcp/` in your terminal (not in claude chat).

    #### Step 4: Run and use

    Run claude code with `claude` command. If this is the first run of the claude code, the setup wizard will appear and you need to complete the authorization, subscription, and configuration steps. Then ask to `get the Indie docs TOC using MCP` or to `generate SMA indicator on Indie language and validate this using MCP` to verify functionality.

    ### Claude code VSCode extension integration

    *MacOS/Linux only, Claude code is not supported on Windows yet*

    #### Step 1: Install claude code extension to your VSCode IDE

    Download and install [from marketplace](https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code) or just install it in the VSCode window on the Extensions tab.

    #### Step 2: Add the integration

    Execute the command `/claude mcp add --transport http takeprofit https://mcp.takeprofit.com/mcp/` (with leading slash) just in claude code chat. Then terminate the current chat and reopen it to apply new setting.

    #### Step 3: Run and use

    Open the chat using the `Ctrl+Shift+P` (`Cmd+Shift+P` on Mac) and `Run Claude Code` command or by clicking on the Claude code icon in the upper-right corner of the IDE window.\
    Write `/mcp` to the chat to see integration info. Then ask to `get the Indie docs TOC using MCP` or to `generate SMA indicator on Indie language and validate this using MCP` to verify functionality.
  </Tab>

  <Tab title="Cursor">
    ### Cursor integration

    #### Step 1: Install the cursor IDE

    Download cursor from [official site](https://cursor.com/downloads), run it and do the initial setup.

    #### Step 2: Add the integration

    1. Open Cursor Setting -> Tools & Integrations (or Cursor Setting -> MCP depends on Cursor version)
    2. Press the "Add Custom MCP" button and paste this to `mcp.json` config:

    ```json theme={null}
    {
      "mcpServers": {
        "TakeProfit": {
          "url": "https://mcp.takeprofit.com/mcp"
        }
      }
    }
    ```

    Or just add the TakeProfit server to the list if you already have other servers:

    ```json theme={null}
    {
      "mcpServers": {
        "OtherServer1": {
          ...
        },
        "OtherServer2": {
          ...
        },
        "TakeProfit": {
          "url": "https://mcp.takeprofit.com/mcp"
        }
      }
    }
    ```

    3. Open Cursor Setting -> Models and choose a model that can work with the MCP, for example `claude-4-sonnet`

    #### Step 3: Open the chat and use

    Toggle AI Pane to open a chat and use new integration: ask to `get the Indie docs TOC using MCP` or to `generate SMA indicator on Indie language and validate this using MCP`. If you are not logged in to cursor yet, you will be redirected to the authorization page.

    **NOTE: [cursor will wait for approve](https://docs.cursor.com/context/mcp#tool-approval) from you when using the mcp for the first time, you will need to press the "Run tool" button so that it can access the MCP**
  </Tab>

  <Tab title="VSCode">
    ### VSCode integration

    #### Step 1: Download and install the VSCode IDE

    Download VSCode from [official site](https://code.visualstudio.com/Download) and install this. Make sure you're using a recent version with agent mode.

    #### Step 2: Add the integration

    * Auto: [click this link to install](vscode:mcp/install?\{"name":"TakeProfit","url":"https://mcp.takeprofit.com/mcp/"})\
      Press "Trust" if VSCode asks "Trust and run MCP server TakeProfit?"

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/01_VSCode_Install.mp4"
    />

    * Or manual:
      * press `Ctrl + Shift + P` (`Cmd + Shift + P` on Mac) to open VSCode command line and execute the `MCP: Open User Configuration` command
      * paste this to `mcp.json` config:

    ```json theme={null}
    {
    	"servers": {
    		"TakeProfit": {
    			"url": "https://mcp.takeprofit.com/mcp/"
    		}
    	}
    }
    ```

    Or just add the TakeProfit server to the list if you already have other servers:

    ```json theme={null}
    {
    	"servers": {
    		"OtherServer1": {
    			...
    		},
    		"OtherServer2": {
    			...
    		},
    		"TakeProfit": {
    			"url": "https://mcp.takeprofit.com/mcp/"
    		}
    	}
    }
    ```

    #### Step 3: Open the chat and use

    * press `Ctrl + Alt + I` (`Cmd + Option + I` on Mac) to open chat or execute `Chat: Open chat` command in VSCode command line (`Ctrl + Shift + P` on Windows, `Cmd + Shift + P` on Mac)
    * set up Copilot and authorize using your github account if VScode asks

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/02_VSCode_Extensions.mp4"
    />

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/03_VSCode_Copilot_Autorization.mp4"
    />

    * write any first message to start the chat
    * select agent mode, choose a model that can work with the MCP, for example `Claude Sonnet` (enable access to the Claude model if VScode asks)

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/04_VSCode_Agent.mp4"
    />

    * press the Tools button to view the list of available tools and enable the TakeProfit tools

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/05_VSCode_Tools.mp4"
    />

    * enter a prompt to use MCP, for example `get the Indie docs TOC using TakeProfit MCP`. VSCode will wait for approve to use MCP, allow this (press `Continue` button) and watch the AI execute the technical workflow for you.

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/06_VSCode_TOC.mp4"
    />
  </Tab>

  <Tab title="mcp-remote">
    ### mcp-remote integration

    Some AI applications do not support remote mcp, but can only work with local mcp tools. In this case, you can use the npm package `mcp-remote`.

    For example, if you have a free claude account, integration with the remote mcp may not be available, but you can configure it with a local mcp.

    #### Step 1: Install Node.js

    1. Go to the official Node.js website: [https://nodejs.org/en/download/](https://nodejs.org/en/download/)
    2. Download the LTS (Long-Term Support) version for your operating system — it's the stable version recommended for most users
    3. Run the installer — no need to change settings during installation

    > You can ignore the PowerShell window that may appear and close itself after installation. If in doubt, restart your computer and continue.

    #### Step 2: Open Claude Desktop Configuration

    1. If you haven't already, [download and install Claude Desktop](https://www.anthropic.com/claude)
    2. Open the Claude application
    3. Navigate to **File → Settings → Developer**
    4. Click **"Edit Config"** — this will open the configuration file in a text editor

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/Claude_Desktop_Configuration.mp4"
    />

    #### Step 3: Edit Configuration File

    Open the config file, which will be located at:

    * **Mac**: `~/Library/Application Support/Claude/claude_desktop_config.json`
    * **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

    **If the file is empty or contains only `{}`:**\
    Replace the file contents with:

    ```json theme={null}
    {
     "mcpServers": {
      "TakeProfit": {
       "command": "npx",
       "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.takeprofit.com/mcp"
       ]
      }
     }
    }
    ```

    **If the file already contains other MCP servers:**\
    Add the TakeProfit server to the existing `mcpServers` block. For example, if the file looks like this:

    ```json theme={null}
    {
     "mcpServers": {
      "OtherServer1": {
       "command": "..."
      },
      "OtherServer2": {
       "command": "...",
       "args": [...]
      }
     }
    }
    ```

    Then change it to:

    ```json theme={null}
    {
     "mcpServers": {
      "OtherServer1": {
       "command": "..."
      },
      "OtherServer2": {
       "command": "...",
       "args": [...]
      },
      "TakeProfit": {
       "command": "npx",
       "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.takeprofit.com/mcp"
       ]
      }
     }
    }
    ```

    #### Step 4: Save and Restart

    1. Save the configuration file (Ctrl+S on Windows, Cmd+S on Mac)
    2. Completely close Claude Desktop
    3. Launch Claude Desktop again

    #### Step 5: Verify Functionality

    <video
      autoPlay
      muted
      loop
      playsInline
      className="w-full rounded-2xl"
      style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
      src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/Claude_Verify_Functionality.mp4"
    />

    After restarting, you should see a tools icon in the bottom left corner of the chat input box. Click on it to open the "Search and tools" menu. If the TakeProfit MCP server is working correctly, you should see "TakeProfit" listed in the tools menu.

    Similarly, you can use the `mcp-remote` in other situations where it is convenient.
  </Tab>
</Tabs>

## Test Your Setup

Try asking LLM one of these questions to test the connection:

**"Can you show me the documentation for the RSI algorithm?"**

**"Help me create a simple moving average indicator in Indie"**

**"Validate this code: \[paste some Indie code]"**

**"What algorithms are available for calculating Bollinger Bands?"**

If the MCP server is working correctly, LLM will respond using Indie documentation and logic.

Once you receive generated code, test it by pasting it into [the IDE widget](/guide/platform/ide-widget/IDE-overview) on the TakeProfit platform to verify that it runs without errors.

<video
  autoPlay
  muted
  loop
  playsInline
  className="w-full rounded-2xl"
  style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
  src="https://mintlify.s3.us-west-1.amazonaws.com/takeprofit-a5dc0462/images/indie/Mcp-server/Claude_TakeProfit.mp4"
/>

## Notes

### Claude Account Requirements

* You'll need a Claude account to use this integration. While it technically works with any account, having a paid plan is strongly recommended so that Claude can properly handle longer prompts and return complete responses:

  * **Claude Pro (\$20/month)**: Suitable for most scripts and general usage
  * **Claude Max (\$100/month)**: Provides the largest context window, ideal for longer or complex scripts

> 💡 **Check current pricing plans here:** [https://www.anthropic.com/pricing](https://www.anthropic.com/pricing)

### Performance Notes

* Works best for code up to \~200-300 lines
* If your script is too long, try splitting it across multiple prompts or chats
* Modern LLM can usually finish or patch incomplete scripts when prompted correctly

## Common Issues and Solutions

### "node not found" Error

* Make sure Node.js is installed correctly
* Restart your computer after installation
* On Windows, check that Node.js is in your PATH environment variables

### MCP Server Won't Connect

* Check your internet connection
* Make sure the configuration file is saved correctly
* Try restarting the application
* Verify Node.js is working by running `node --version` in command line
