Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Runtime

MCP server by Senpi-ai Verified · npm:@senpi

Runs Hyperliquid perp trading strategies for Senpi agents, with position sizing, risk limits and two-phase DSL trailing-stop exits. Built for pro traders who code and for their AI agents.

  • Score 91
  • 146 stars
  • 19k a week
  • UNLICENSED
  • Updated

Install Runtime

Built from the published package, never by AI.

claude mcp add runtime -- npx -y @senpi/runtime

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Runtime in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the runtime block.

About

Runtime is the Senpi trading runtime contract for Hyperliquid strategies, published in the open-source senpi-skills repository under the MIT license. A strategy is a small Python module that exports scan(inputs, ctx) and returns signals. The Senpi runtime calls it on a schedule and handles sizing, order execution, risk limits and exits, so the strategy code never places an order.

Each strategy sets its exits and risk limits in runtime.yaml. Every position gets a hard stop when it opens, then a ratcheting ladder locks in more of a winner as it runs. The risk engine enforces daily-loss halts, drawdown breakers, maximum entries per day, cooldowns after losses, and margin, notional and leverage caps on every tick. It is aimed at pro traders who code and at their AI agents.

Written from the project's README and checked against it.

Tools it gives your assistant

  • scan(inputs, ctx)Exported strategy function that returns signals, called by the runtime on a schedule.
  • runtime.yamlExecutable spec for a strategy's scanners, actions, exit and risk settings.
  • Two-phase DSL exitsA hard stop at open, then a ratcheting ladder that locks in gains as a trade runs.
  • Conviction-weighted sizingPosition size scales with the live account (margin_pct) and the signal's own score.
  • Risk guard railsDaily-loss halt, drawdown breaker, entry caps, cooldowns, and margin, notional and leverage limits.
  • Per-strategy walletEach strategy trades from its own funded wallet, and no strategy shares capital with another.

What you need

  • A Senpi agent
  • Python for writing strategy modules
  • A funded Hyperliquid strategy wallet

Try asking

  • Explain the exit settings in this strategy's runtime.yaml.
  • Write a scan(inputs, ctx) function that goes long on a 7-day high.
  • Show the risk guard rails set for this strategy.

Good to know

  • The source describes the runtime contract and does not list MCP tool names.
  • Strategies trade real money on Hyperliquid through funded strategy wallets.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Runtime

All alternatives →
mcp stripe
96

Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.

AAA Remote 2.1k
TradingMCPatilaahmettaner
94

Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.

AAA Remote 5.4k
CCXTccxt
94

CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.

AAA Local 45k
Finance ToolkitJerBouma
94

Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.

AAA Local and remote 5.6k
Vapi Network MCP vAPI-Network
94

Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.

AAA Local 6.2k
Finance DatabaseJerBouma
94

Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.

AAA Local and remote 9.7k

Compare with mcp, TradingMCP or CCXT

Runtime: common questions

Does strategy code place orders directly?

No. The source says the Senpi runtime calls scan() on a schedule and handles sizing, execution, risk limits and exits, so the strategy code never places an order.

How are positions exited?

Each position gets a two-phase DSL exit set in runtime.yaml: a hard stop from the moment it opens, then a ratcheting ladder that locks in more of a winner.

Do strategies share capital?

No. Each strategy trades from its own strategy wallet, funded with the budget the user chooses, and no strategy shares capital with another.

How do I install Runtime?

In Claude Code run claude mcp add runtime -- npx -y @senpi/runtime. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Runtime the official server?

Runtime is published by npm:@senpi from its verified domain in the official MCP Registry.

Is Runtime free?

The code is published under the UNLICENSED licence. The service it connects to may have its own pricing.

Is Runtime safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Runtime?

Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.

Does Runtime work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Runtime Install

Add to stack

Loading.