Get the FREE Ultimate OpenClaw Setup Guide →

ta-lib

A Model Context Protocol server providing tools to access to TA-Lib technical analysis indicators.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio hanai-ta-lib-mcp-server docker run -i --rm ghcr.io/hanai/ta-lib-mcp-server:main

How to use

The TA-Lib MCP Server exposes TA-Lib's technical analysis indicators through the Model Context Protocol (MCP). This allows AI assistants and MCP clients to request indicator calculations (such as moving averages, RSI, MACD, Bollinger Bands, etc.) on provided financial data. To use it, add the server configuration to your MCP-enabled IDE or orchestrator as shown in the README, which points the MCP client to the Docker image that runs the TA-Lib MCP server. Once running, you can query the server with requests containing the financial data (e.g., price series) and the desired TA-Lib indicator, and receive computed results suitable for ingestion into your AI workflow.

The server leverages TA-Lib under the hood and exposes a range of indicators via MCP endpoints. You can pass in your time series data (opens, highs, lows, closes, volumes) and request specific indicators with parameters (time period, type, etc.). This enables dynamic embedding of technical analysis capabilities directly into your chat or automation pipelines, enabling smarter financial data reasoning and analysis within your MCP-enabled environment.

How to install

Prerequisites:

  • Docker installed and running on your host
  • Internet access to pull the image

Installation steps:

  1. Pull the TA-Lib MCP Server Docker image: docker pull ghcr.io/hanai/ta-lib-mcp-server:main

  2. Run the MCP server in the background or attached mode: docker run -i --rm ghcr.io/hanai/ta-lib-mcp-server:main

  3. Confirm the server is responding (optional): Use your MCP client to send a test request to the server endpoint provided by your environment. If you are using the provided IDE snippet, ensure your MCP client is configured to point at the running container.

  4. Integrate with your MCP client: Configure your MCP client to reference the ta-lib server as shown in the README JSON snippet.

Notes:

  • If your environment uses a different networking setup, you may need to expose ports or use a host networking mode depending on how your MCP client discovers services.

Additional notes

Tips:

  • Ensure Docker has enough memory allocated, as TA-Lib and NumPy operations can be memory-intensive for large time series.
  • The server image tag main is used in the example; prefer a specific version tag for production stability.
  • If you encounter library compatibility issues, verify that the host's system libraries meet TA-Lib requirements and that the container can access those dependencies.
  • This MCP server relies on TA-Lib; for large datasets, batch requests or streaming approaches can improve performance.
  • Environment variables are not defined in the README; if the image supports configuration via env vars, refer to the official image documentation for any optional settings.

Related MCP Servers

Sponsor this space

Reach thousands of developers