Starkfi logo

Starkfi

Starknet DeFi MCP server with 51 tools for swaps, staking, lending, batching, DCA, vaults, and portfolio operations.

Install Starkfi

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "starkfi": {
      "command": "npx",
      "args": [
        "-y",
        "starkfi@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio starkfi -- npx -y starkfi@latest

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y starkfi@latest

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

starkfi MCP server exposes Starknet DeFi operations to AI assistants through a stdio MCP process. Its 51 tools cover wallet and portfolio actions, token swaps, atomic multicall batches, staking, lending, DCA orders, confidential transfers, Troves vaults, and liquid staking. Transactions can be simulated before broadcasting, while gas may be paid in supported tokens or sponsored by a developer. Reach for starkfi when an agent needs to inspect or execute multi-step Starknet DeFi workflows.

Use cases

  • Execute and simulate Starknet token swaps
  • Combine swaps, staking, lending, and transfers in one batch
  • Manage lending positions and recurring DCA orders
  • Inspect portfolios and rebalance token holdings

Key features

  • 51 MCP tools over stdio transport
  • Starknet swaps and atomic multicall batching
  • Staking, liquid staking, lending, and Troves vault operations
  • DCA order creation and management
  • Tongo Cash confidential transfers
  • Transaction simulation and configurable gas payment

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 27d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · starkfi@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads171Package downloads in the last 30 days.
Last commit21d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Starkfi works

What starkfi does

starkfi brings Starknet DeFi operations into an MCP-compatible interface for AI assistants. The server exposes 51 tools spanning account and wallet actions, trading, staking, lending, dollar-cost averaging, confidential transfers, Troves vault strategies, and liquid staking.

Wallet capabilities include balance and portfolio queries, token transfers, account deployment, transaction-status checks, and portfolio rebalancing. Trading tools provide swap quotes and execution, multi-swap operations, and batched transactions. A batch can combine actions such as swapping, staking, lending, sending tokens, DCA, and Troves operations into one multicall transaction.

The finance workflows include validator and pool discovery, staking lifecycle actions, lending positions and debt management, recurring buy orders, Tongo Cash confidential transfers, yield-vault deposits and withdrawals, and Endur liquid staking operations.

How it works

Start the MCP process with:

Terminal
npx starkfi@latest mcp-start

The process uses stdio transport. Register it in an MCP client by invoking npx with -y, the starkfi@latest package, and the mcp-start command. Cursor and Claude Desktop are named client options, and the same server configuration can be used by compatible MCP clients.

Authentication begins through the CLI with an email login and one-time-password verification. After authentication, an agent can query balances or portfolios, request quotes, simulate transactions, and execute supported operations. Simulation is available for transaction previews before broadcast.

Starkfi is built on the Starkzap SDK and uses its wallet, paymaster, staking, DCA, transaction-builder, confidential-transfer, Troves, Endur LST, and ERC-20 modules. Gas configuration supports STRK, ETH, USDC, USDT, or DAI, or a developer-sponsored gas mode.

Setup and configuration

The quickest setup uses the npm package without a local checkout:

Terminal
npx starkfi@latest auth login user@example.com
npx starkfi@latest auth verify user@example.com <OTP_CODE>
npx starkfi@latest mcp-start

Add the following command definition to the MCP client configuration:

config.json
{
  "mcpServers": {
    "starkfi": {
      "command": "npx",
      "args": ["-y", "starkfi@latest", "mcp-start"]
    }
  }
}

For development, clone the repository, install dependencies with pnpm install, and build with pnpm build. The project also provides pnpm dev -- --help for running through tsx with hot reload.

Tools and capabilities

The tool groups include:

  • Authentication and configuration status
  • Wallet balances, portfolios, transfers, deployment, transaction status, and rebalancing
  • Swap quotes, swaps, multi-swaps, and batch execution
  • Validator, staking-pool, stake, unstake, rewards, and compounding operations
  • Lending supply, withdrawal, borrowing, repayment, position closure, monitoring, and rebalancing
  • DCA previews, creation, listing, and cancellation
  • Confidential setup, funding, transfers, withdrawals, rollovers, and rage quits
  • Troves strategy discovery, position queries, deposits, and withdrawals
  • Liquid-staking positions, statistics, staking, redemption, and full exits

The CLI also includes 50 commands, while the repository packages additional multi-step agent workflows as skills.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Starkfi

starkfi is an MCP server that connects AI assistants to Starknet DeFi operations through tools for balances, portfolio, swaps, batching, staking, lending, DCA, confidential transfers, Troves vaults, and liquid staking. It runs over stdio and can simulate transactions before execution.

Install it by configuring your MCP client to run `npx -y starkfi@latest mcp-start`. No repository checkout is required for the npm-based setup. Authenticate separately with `npx starkfi@latest auth login` and the OTP verification command.

Yes, starkfi works with Cursor through its stdio MCP configuration. Add a server entry that invokes `npx -y starkfi@latest mcp-start`, then authenticate the Starkfi account before using DeFi tools.

Yes, starkfi can simulate supported transactions before broadcasting them. The CLI exposes simulation for operations such as swaps, and its MCP tools support workflows that preview transactions before execution.

Starkfi supports swaps, multi-swaps, atomic batches, staking, liquid staking, lending, DCA, Troves vaults, confidential transfers, portfolio actions, and token transfers. Its tools also provide quotes, balances, position data, transaction status, and portfolio rebalancing.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStarkfi AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/starkfi?style=directory)](https://allmcps.com/mcp/starkfi)
HTML Embed
<a href="https://allmcps.com/mcp/starkfi"><img src="https://allmcps.com/api/badge/starkfi?style=directory" alt="Starkfi on AllMCPs" /></a>