Skip to main content
Glama

feargreed

Get the Crypto Fear & Greed Index to measure market sentiment and track investor psychology trends over the past 7 days.

Instructions

Crypto Fear & Greed Index — market sentiment indicator. Shows last 7 days.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getFearGreed function fetches the latest crypto Fear & Greed Index from the API.
    async function getFearGreed() {
      try {
        const data = await fetch('https://api.alternative.me/fng/?limit=7');
        return data.data.map(d => ({
          value: parseInt(d.value),
          label: d.value_classification,
          date: new Date(d.timestamp * 1000).toISOString().split('T')[0],
        }));
      } catch (e) {
        return { error: 'Fear & Greed API unavailable' };
      }
    }
  • index.js:310-314 (registration)
    Definition of the 'feargreed' tool in the MCP server tool list.
    {
      name: 'feargreed',
      description: 'Crypto Fear & Greed Index — market sentiment indicator. Shows last 7 days.',
      inputSchema: { type: 'object', properties: {} }
    }
  • The tool call handler for 'feargreed' calls the getFearGreed function.
    case 'feargreed':
      return await getFearGreed();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ShipItAndPray/mcp-market-data'

If you have feedback or need assistance with the MCP directory API, please join our Discord server