Skip to main content
Glama
leandrogavidia

Marinade Finance MCP Server

README.md
<div align="center">

<p></p>

<img src="./assets/mnde-lofo.svg" width=120 height=120 />

<p></p>

<h1>Marinade Finance MCP Server</h1>

<a href="https://smithery.ai/server/@leandrogavidia/marinade-finance-mcp-server" target="_blank">
<img src="https://smithery.ai/badge/@leandrogavidia/marinade-finance-mcp-server" alt="smithery badge">
</a>

<p></p>

<p>Marinade Finance MCP Server is an MCP server specifically designed for interacting with Marinade Finance on the Solana network. It provides advanced functionalities such as querying the official Marinade Finance documentation, retrieving protocol state information, managing liquid staking operations (stake/unstake), checking mSOL balances, and sending mSOL tokens between wallets.</p>

<a href="https://smithery.ai/server/@leandrogavidia/marinade-finance-mcp-server" target="_blank">Official page</a>
</div>

## Integration

Register the server in your MCP-aware host configuration.
```json
{
  "mcpServers": {
    "marinade-finance": {
      "url": "https://server.smithery.ai/@leandrogavidia/marinade-finance-mcp-server/mcp",
      "type": "streamable-http"
    }
  }
}
```

**Note:** Follow the Smithery's auth flow.

## Tools

- ### Marinade Finance Docs 

    - **Docs**
        
        - `search_documentation`: Search Marinade Finance Documentation for relevant information, code examples, API references, and guides.

- ### Marinade Finance State

    - **State**
        
        - `get_marinade_state`: Retrieve the current state of the Marinade Finance protocol, including information about staked assets, mint address, price, rewards, and other relevant data.

- ### Liquid Staking & Wallet Operations

    - **Balance**
        
        - `get_msol_balance`: Check the mSOL token balance of the environment wallet or any specified Solana wallet address.

    - **Staking**
        
        - `stake_msol`: Stake SOL tokens with Marinade Finance to receive mSOL tokens and earn rewards.
        
        - `unstake_msol`: Unstake mSOL tokens to receive SOL tokens back.
    
    - **Transfers**
        
        - `send_msol`: Send mSOL tokens to another Solana wallet address (automatically creates recipient token account if needed).

---

## .env Config

- `PRIVATE_KEY`: Base58-encoded private key for your Solana wallet (required for on-chain operations like staking, unstaking, and transfers).

- `SOLANA_RPC_URL`: Solana RPC URL for mainnet operations.

- `SOLANA_RPC_URL_DEVNET`: Solana RPC URL for devnet/testnet operations.

- `ENVIRONMENT`: Working environment, either `MAINNET` or `TESTNET`.

- `USE_STREAMABLE_HTTP`: Specifies whether your MCP server will run on stdio or streamable-http (set to `true` or `false`).

- `PORT`: Port where your MCP server will run when using streamable-http (default: 3000).

- `HOST`: Host where your MCP server will run when using streamable-http (default: 0.0.0.0).

## Run the project locally

In one terminal window, run the following command: `pnpx @modelcontextprotocol/inspector pnpx tsx ./src/index.ts` in `stdio` mode.

## Build and run

Run the command: `pnpm run build` and then: `pnpm run start`

**Note:** Run in http mode

## Deployment

To deploy this MCP server, fork this project into your GitHub account, log in to [smithery.ai](https://smithery.ai/), and click Publish server. Complete the steps, and once it is deployed, add the required environment variables in settings.

---

## License

MIT

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: get_marinade_state retrieves protocol-wide data, get_msol_balance checks wallet balances, search_documentation handles documentation queries, send_msol transfers tokens, stake_msol stakes SOL for mSOL, and unstake_msol reverses that process. The actions and targets are unambiguous.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using snake_case: get_marinade_state, get_msol_balance, search_documentation, send_msol, stake_msol, and unstake_msol. The naming is predictable and readable throughout the set.

Tool Count5/5

With 6 tools, this server is well-scoped for its domain of Marinade Finance operations. Each tool earns its place by covering essential functions like state retrieval, balance checking, documentation search, token transfers, and staking/unstaking, without being overly sparse or bloated.

Completeness4/5

The tool set covers core workflows for interacting with Marinade Finance, including staking, unstaking, transfers, balance checks, and protocol state. A minor gap is the lack of tools for managing rewards or advanced operations like liquidity provision, but agents can work around this with the provided tools.

Maintenance

ActivityInactive
ResponsivenessNo issues