Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Solana DeFi Analytics

FreeNot checked

Solana DeFi Analytics — Model Context Protocol server

GitHubEmbed

About

Solana DeFi Analytics — Model Context Protocol server

README

A Model Context Protocol (MCP) server that provides comprehensive analytics and insights for Solana wallets and their DeFi activities.

Features

  • Wallet Activity Analysis: Track and analyze transaction history, patterns, and behaviors
  • DeFi Position Tracking: Monitor staking, lending, and liquidity positions across protocols
  • Risk Profiling: Assess wallet risk profiles based on transaction patterns
  • Strategy Recommendations: Get personalized DeFi strategy suggestions
  • Transaction Details: Detailed breakdown and analysis of individual transactions

Supported Protocols

  • Raydium (Swap)
  • Orca (Swap)
  • Jupiter (Aggregator)
  • Marinade (Staking)
  • Serum DEX V3
  • Solend (Lending)
  • Mango Markets
  • FluxBeam
  • Metaplex (NFTs)

Tools

1. fetchWalletActivity

Retrieves detailed transaction history for a Solana wallet address.

{
    address: string,
    limit?: number // default: 20
}

2. analyzeWallet

Performs comprehensive analysis of a wallet's DeFi activity and generates recommendations.

{
    address: string
}

3. getTransactionDetails

Provides detailed information about a specific Solana transaction.

{
    signature: string
}

Installation

  1. Clone the repository:
git clone https://github.com/kirtiraj22/Solana-DeFi-Analytics-MCP-Server
cd solana-mcp
  1. Install dependencies:
pnpm install
  1. Set up environment variables:
cp .env.example .env

Configure the following variables in .env:

SOLANA_RPC_URL=your_rpc_url_here

Usage

Start the MCP server:

pnpm run dev

To Test via the MCP Inspector run the following commands:

pnpm build
npx @modelcontextprotocol/inspector node build/index.js

For Claude Desktop client, add the following code to the claude_desktop_config.json :

{
	"mcpServers": {
		"filesystem": {
			"command": "node",
			"args": [
				"<PROJECT_PATHL>\\solana-mcp\\build\\index.js"
			],
			"env": {
				"SOLANA_RPC_URL": "<YOUR_SOLANA_RPC_URL>"
			}
		}
	}
}

Project Structure

src/
├── analyzers/          # Analysis logic for patterns, DeFi positions, etc.
├── config/             # Configuration constants and settings
├── formatters/         # Output formatting for different types of data
├── services/          # Core services for blockchain interaction
├── tools/             # MCP tool implementations
├── types/             # TypeScript interfaces and types
└── utils/             # Utility functions and helpers

Features in Detail

Wallet Analysis

  • Transaction history tracking
  • Protocol interaction analysis
  • Risk profile assessment
  • Portfolio diversification scoring
  • Favorite protocol identification

DeFi Position Tracking

  • Active staking positions
  • Lending positions
  • Liquidity provisions
  • Trading statistics

Pattern Recognition

  • Dollar-cost averaging detection
  • Yield farming patterns
  • Trading behavior analysis
  • Protocol usage patterns

Risk Assessment

  • Trading frequency monitoring
  • Protocol diversity evaluation
  • Security considerations

Adding New Features

  1. Create new analyzers in src/analyzers/
  2. Add formatters in src/formatters/
  3. Implement services in src/services/
  4. Register new tools in src/tools/

from github.com/kirtiraj22/Solana-DeFi-Analytics-MCP-Server

Installing Solana DeFi Analytics

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/kirtiraj22/Solana-DeFi-Analytics-MCP-Server

FAQ

Is Solana DeFi Analytics MCP free?

Yes, Solana DeFi Analytics MCP is free — one-click install via Unyly at no cost.

Does Solana DeFi Analytics need an API key?

No, Solana DeFi Analytics runs without API keys or environment variables.

Is Solana DeFi Analytics hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Solana DeFi Analytics in Claude Desktop, Claude Code or Cursor?

Open Solana DeFi Analytics on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Solana DeFi Analytics with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs