gecko.mdā¢1.39 kB
# š¦ How to Get Your CoinGecko API Key
CoinGecko provides comprehensive cryptocurrency market data for the DeFi Trading Agent MCP. Follow these simple steps to get your free API key:
## š **Step-by-Step Guide**
### **Step 1: Create a CoinGecko Account**
1. Visit [CoinGecko.com](https://www.coingecko.com/)
2. Click the **"Sign Up"** button in the top right corner
3. Complete the registration process.
### **Step 2: Access the Developer Dashboard**
1. Once logged in, navigate to the [Developer Dashboard](https://www.coingecko.com/developers/dashboard)
2. You'll see your API management interface
### **Step 3: Generate Your API Key**
1. Click **"Create API Key"** or **"Add New Key"**
2. Give your API key a descriptive name (e.g., "DeFi Trading")
3. Plan:
- **Demo Plan**: Free, 30 calls/minute (good for starting out)
### **Step 4: Copy Your API Key**
1. Once generated, **copy your API key**
2. It will look something like: `CG-xxxxxxxxxxxxxxxxxxxxxxxxx`
3. **Keep it secure** - treat it like a password
## š§ **Using Your API Key**
Add your CoinGecko API key to your MCP configuration:
```bash
COINGECKO_API_KEY=CG-your_actual_api_key_here
```
## š **Security Best Practices**
- ā
**Never share** your API key publicly
- ā
**Store securely** in environment variables
- ā
**Regenerate** if compromised
- ā
**Monitor usage** in the dashboard
---