Overview
marginfi-mcp-server is a server application designed to facilitate the margin trading process in financial markets.
To use marginfi-mcp-server, clone the repository from GitHub, set up the server environment, and configure the necessary parameters for margin trading.
- Supports real-time margin trading operations - Provides APIs for integration with trading platforms - Monitors margin levels and risk management
- Enabling automated margin trading strategies.
- Integrating with existing trading platforms for enhanced functionality.
- Monitoring and managing margin accounts in real-time.
Add to your AI client
Use these steps to connect marginfi-mcp-serverr in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"marginfi-mcp-server-aldrin-labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-marginfi-mcp-server-aldrin-labs"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"marginfi-mcp-server-aldrin-labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-marginfi-mcp-server-aldrin-labs"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"marginfi-mcp-server-aldrin-labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-marginfi-mcp-server-aldrin-labs"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"marginfi-mcp-server-aldrin-labs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-marginfi-mcp-server-aldrin-labs"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"marginfi-mcp-server-aldrin-labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-marginfi-mcp-server-aldrin-labs"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"marginfi-mcp-server-aldrin-labs": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-marginfi-mcp-server-aldrin-labs"
]
}
}
}FAQ
What programming languages does marginfi-mcp-server support?
The server is primarily built using JavaScript and Node.js.
Is marginfi-mcp-server open-source?
Yes! marginfi-mcp-server is open-source and available on GitHub.
How can I contribute to marginfi-mcp-server?
You can contribute by submitting issues, pull requests, or suggestions on the GitHub repository.