bink-mcp-server
0
Bink MCP Server is a tool designed for Bink AI that serves as a bridge for AI agents to interact with blockchain networks and DeFi applications. It supports multi-chain operations, secure wallet management, and integrates with leading DeFi platforms.
Bink MCP Server
A Model Context Protocol (MCP) server implementation for Bink AI, enabling AI agents to interact with blockchain networks and DeFi applications.
Overview
Bink MCP Server provides a bridge between AI language models and blockchain functionality through the Model Context Protocol. It allows AI agents to perform various blockchain operations including:
- Wallet management
- Token information retrieval
- DeFi swaps on platforms like PancakeSwap
- Cross-chain bridging
- Price checking and trading
Features
- 🌐 Multi-chain Support: Works with Ethereum, BNB Chain, and Solana networks
- 🔄 DeFi Integrations: Connects with PancakeSwap, Jupiter, Thena and other DeFi platforms
- 🔌 Modular Plugin System: Extensible architecture with support for swap, bridge, token and wallet plugins
- 🔐 Secure Wallet Management: Handles wallet operations securely
- 🤖 MCP Compatibility: Fully implements the Model Context Protocol for AI agent integration
Prerequisites
- Node.js 16+
- Yarn or npm
Installation
# Clone the repository
git clone https://github.com/Bink-AI/bink-mcp-server.git
cd bink-mcp-server
# Install dependencies
yarn install
Configuration
Create a .env
file in the root directory with the following variables:
# Wallet configuration
WALLET_MNEMONIC=your_wallet_mnemonic_here
Usage
Development
# Start the development server
yarn dev
Production
# Build the project
yarn build
# Start the server
yarn start
API
This server implements the Model Context Protocol, providing the following endpoints:
listTools
- Lists available blockchain toolscallTool
- Executes blockchain operationslistResources
- Lists available resourcesreadResource
- Retrieves resource data
Development
Project Structure
src/index.ts
- Entry pointsrc/server.ts
- MCP server implementationsrc/mcp-agent.ts
- Agent bridging MCP to Bink pluginssrc/utils.ts
- Utility functions