Mcp Server Fear Greed

io.github.ycjcl868由 GitHub 帳號 ycjcl868 發布v1.0.2更新於 Oct 24, 2026

An MCP server for mcp-server-fear-greed

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理取得 CNN 恐懼與貪婪指數及美國股市各分項市場情緒評分。

可以做什麼
取得目前恐懼與貪婪指數分數與評級,以及前收盤、前一週、前一個月和前一年的比較數值,可輸出為 markdown 或原始 JSON。
適用情境
適合希望助理在對話中直接查詢美國市場目前情緒,或討論恐懼與貪婪指數及其分項指標的情境。
執行需求
需要 Node.js 18 或更新版本,以及 VS Code、Cursor、Windsurf、Claude Desktop 等 MCP 用戶端;透過 npx 在本機執行,並需要網路存取以取得指數資料。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
伺服器會向外部網路請求指數資料,請求失敗或回應異常會以錯誤形式回報。資料僅供市場情緒參考,不構成投資建議,使用前應自行核實。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Server Fear Greed,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MCP Server Fear & Greed Index

[NPM Downloads]

[Install MCP Server]

A Model Context Protocol (MCP) server that provides access to the CNN Fear & Greed Index for the US stock market. This server fetches real-time market sentiment data and presents it in both structuredContent and text content.

[圖片]

Features

  • Real-time Fear & Greed Index: Get the current market sentiment score (0-100)
  • Historical Comparisons: View previous close, week, month, and year data
  • Detailed Market Indicators: Access individual component scores including:
    • Market Momentum (S&P 500 & S&P 125)
    • Stock Price Strength & Breadth
    • Put/Call Options Ratio
    • Market Volatility (VIX)
    • Junk Bond Demand
    • Safe Haven Demand
  • Flexible Output: Choose between structured markdown or raw JSON format

Requirements

  • Node.js 18 or newer
  • VS Code, Cursor, Windsurf, Claude Desktop or any other MCP client

Getting Started

Local (Stdio)

First, install the Fear & Greed MCP server with your client. A typical configuration looks like this:

js
{  "mcpServers": {    "mcp-server-fear-greed": {      "command": "npx",      "args": [        "-y",        "mcp-server-fear-greed@latest"      ]    }  }}
Install in VS Code

You can also install the mcp-server-fear-greed MCP server using the VS Code CLI:

bash
# For VS Codecode --add-mcp '{"name":"mcp-server-fear-greed","command":"npx","args":["mcp-server-fear-greed@latest"]}'

After installation, the Fear & Greed MCP server will be available for use with your GitHub Copilot agent in VS Code.

Install in Cursor

Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, npx mcp-server-fear-greed. You can also verify config or add command like arguments via clicking Edit.

js
{  "mcpServers": {    "mcp-server-fear-greed": {      "command": "npx",      "args": [        "mcp-server-fear-greed@latest"      ]    }  }}
Install in Windsurf

Follow Windsurf MCP documentation. Use following configuration:

js
{  "mcpServers": {    "mcp-server-fear-greed": {      "command": "npx",      "args": [        "mcp-server-fear-greed@latest"      ]    }  }}
Install in Claude Desktop

Follow the MCP install guide, use following configuration:

js
{  "mcpServers": {    "mcp-server-fear-greed": {      "command": "npx",      "args": [        "mcp-server-fear-greed@latest"      ]    }  }}

Remote (SSE / Streamable HTTP)

At the same time, use --port $your_port arg to start the browser mcp can be converted into SSE and Streamable HTTP Server.

bash
# normal run remote mcp servernpx mcp-server-fear-greed --port 8089

You can use one of the two MCP Server remote endpoint:

  • Streamable HTTP(Recommended): http://127.0.0.1::8089/mcp
  • SSE: http://127.0.0.1::8089/sse

And then in MCP client config, set the url to the SSE endpoint:

js
{  "mcpServers": {    "mcp-server-fear-greed": {      "url": "http://127.0.0.1::8089/sse"    }  }}

url to the Streamable HTTP:

js
{  "mcpServers": {    "mcp-server-fear-greed": {      "type": "streamable-http", // If there is MCP Client support      "url": "http://127.0.0.1::8089/mcp"    }  }}

In-memory call

If your MCP Client is developed based on JavaScript / TypeScript, you can directly use in-process calls to avoid requiring your users to install the command-line interface to use Fear & Greed MCP.

js
import { Client } from '@modelcontextprotocol/sdk/client/index.js';import { InMemoryTransport } from '@modelcontextprotocol/sdk/inMemory.js';
// type: module project usageimport { createServer } from 'mcp-server-fear-greed';// commonjs project usage// const { createServer } = await import('mcp-server-fear-greed')
const client = new Client(  {    name: 'test fear greed client',    version: '1.0',  },  {    capabilities: {},  },);
const server = createServer();const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
await Promise.all([  client.connect(clientTransport),  server.connect(serverTransport),]);
// list toolsconst result = await client.listTools();console.log(result);
// call toolconst toolResult = await client.callTool({  name: 'get_fear_greed_index',  arguments: {    format: 'json'  },});console.log(toolResult);

API Reference

Tool: get_fear_greed_index

Fetches the current Fear & Greed Index and related market indicators.

Parameters
  • format (optional): Output format
    • "structured" (default): Returns formatted markdown with organized data
    • "json": Returns raw JSON data
Example Usage
javascript
// Get structured outputawait client.callTool("get_fear_greed_index");
// Get JSON outputawait client.callTool("get_fear_greed_index", { format: "json" });
Response Structure

The tool returns data in the following structure:

json
{  "fear_and_greed": {    "score": 75,    "rating": "greed",    "timestamp": "2025-07-18T23:59:57+00:00",    "previous_close": 75.31,    "previous_1_week": 75.26,    "previous_1_month": 54.29,    "previous_1_year": 45.94  },  "fear_and_greed_historical": {    "timestamp": 1752883197000,    "score": 75,    "rating": "greed"  },  "market_momentum_sp500": {    "timestamp": 1752871567000,    "score": 61.2,    "rating": "greed"  },  "market_momentum_sp125": {    "timestamp": 1752871567000,    "score": 61.2,    "rating": "greed"  },  "stock_price_strength": {    "timestamp": 1752883197000,    "score": 80,    "rating": "extreme greed"  },  "stock_price_breadth": {    "timestamp": 1752883197000,    "score": 84,    "rating": "extreme greed"  },  "put_call_options": {    "timestamp": 1752871897000,    "score": 79.6,    "rating": "extreme greed"  },  "market_volatility_vix": {    "timestamp": 1752869701000,    "score": 50,    "rating": "neutral"  },  "market_volatility_vix_50": {    "timestamp": 1752869701000,    "score": 50,    "rating": "neutral"  },  "junk_bond_demand": {    "timestamp": 1752877800000,    "score": 88.8,    "rating": "extreme greed"  },  "safe_haven_demand": {    "timestamp": 1752868799000,    "score": 81.4,    "rating": "extreme greed"  }}

Fear & Greed Index Ratings

The index uses the following rating scale:

  • 0-25: Extreme Fear
  • 26-45: Fear
  • 46-55: Neutral
  • 56-75: Greed
  • 76-100: Extreme Greed

Development

Access http://127.0.0.1:6274/:

bash
npm run dev

Error Handling

The server includes comprehensive error handling:

  • Network request failures are caught and reported
  • Invalid API responses are handled gracefully
  • Missing data fields are filled with sensible defaults
  • All errors include descriptive messages

來源:README.md,提交 1feb12e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分