Crypto Fear & Greed Index MCP server

Provides real-time and historical cryptocurrency market sentiment data through the Fear & Greed Index API for analyzing market psychology and potential price movements.
Back to servers
Setup instructions
Provider
kukapay
Release date
Mar 17, 2025
Language
Python
Stats
31 stars

The Crypto Fear & Greed Index MCP Server provides real-time and historical Crypto Fear & Greed Index data powered by Alternative.me. It's designed to integrate seamlessly with MCP-compatible clients, including Claude Desktop, allowing you to access and analyze market sentiment data with ease.

Features

  • Current Index: Retrieve the latest Fear & Greed Index value and classification
  • Historical Data: Fetch historical index values for a specified number of days
  • Trend Analysis: Analyze trends over time with statistics like average value and trend direction
  • Tool-Only Support: Includes tool versions of all resources for compatibility with tool-only MCP clients
  • Prompt Generation: Provides a prompt template for interpreting index values

Installation Options

Using Smithery

To install automatically via Smithery:

npx -y @smithery/cli install @kukapay/crypto-feargreed-mcp --client claude

Manual Installation

  1. Clone the repository:
git clone https://github.com/kukapay/crypto-feargreed-mcp.git
cd crypto-feargreed-mcp
  1. Install for Claude Desktop:
mcp install main.py --name "CryptoFearGreed"
  1. Enable it in your Claude Desktop configuration.

For Other MCP Clients

Add a server entry to your configuration file:

"mcpServers": { 
  "crypto-feargreed-mcp": { 
    "command": "uv", 
    "args": [ 
      "--directory", "/your/path/to/crypto-feargreed-mcp", 
      "run", 
      "main.py" 
    ]
  } 
}

Available Resources

Data Endpoints

  • fng://current - Current Fear & Greed Index
  • fng://history/{days} - Historical data for specified number of days

Tools

  • get_current_fng_tool() - Current index (same as fng://current)
  • get_historical_fng_tool(days: int) - Historical data (same as fng://history/{days})
  • analyze_fng_trend(days: int) - Provides trend analysis over specified days

Prompts

  • interpret_fng - Generates a prompt for interpreting index values

Usage Examples

After installation, you can ask Claude questions like:

  • "What's the current Crypto Fear & Greed Index?"
  • "Show me the Crypto Fear & Greed Index trend for the last 30 days."

Claude will automatically call the appropriate tools and provide responses with the current value, classification, and trend analysis.

Sample Outputs

Current Index

Crypto Fear & Greed Index (as of 2025-03-15 00:00:00 UTC):
Value: 45
Classification: Fear

Historical Data

Historical Crypto Fear & Greed Index:
2025-03-15 00:00:00 UTC: 45 (Fear)
2025-03-14 00:00:00 UTC: 48 (Fear)
...

Trend Analysis

Fear & Greed Index Analysis (30 days):
Latest Value: 45 (Fear) at 2025-03-15 00:00:00 UTC
Average Value: 47.3
Trend: falling
Data points analyzed: 30

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "crypto-feargreed-mcp" '{"command":"uv","args":["--directory","/your/path/to/crypto-feargreed-mcp","run","main.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "crypto-feargreed-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/your/path/to/crypto-feargreed-mcp",
                "run",
                "main.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "crypto-feargreed-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/your/path/to/crypto-feargreed-mcp",
                "run",
                "main.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later