Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Descripción del creador (original en inglés)
CNN's Fear & Greed index for the US stock market: score, rating, indicators and daily history.
Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
Necesitas
¿Qué app usas?
Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.
Abre Claude Desktop → Settings → Developer → Edit Config y pega esto en claude_desktop_config.json
{
"mcpServers": {
"cnnfag": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/wildsurfer/cnnfag:2.2.0"
]
}
}
}Ejecuta esto en tu terminal
claude mcp add cnnfag -- docker run -i --rm ghcr.io/wildsurfer/cnnfag:2.2.0Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"cnnfag": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/wildsurfer/cnnfag:2.2.0"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"cnnfag": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/wildsurfer/cnnfag:2.2.0"
]
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Este se ejecuta en tu computadora, y ChatGPT solo puede conectarse a servidores en internet. Elige otra app.
Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.
Esta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026
El nombre en el registro se verificó con la cuenta de GitHub wildsurfer, dueña del repo
Todavía no hemos leído este repo en GitHub
Todavía no hemos leído este repo en GitHub
Este se ejecuta en tu computadora; no hay endpoint en internet
Se ejecuta en tu computadora y usa ajustes locales en su lugar
Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
El registro no indica ninguna clave obligatoria, aunque algunos servidores te piden iniciar sesión la primera vez que los usas.
Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).
El repo de GitHub cambió por última vez –, y la última versión (2.2.0) llegó al registro hace 3 meses.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Docker en tu computadora.
En la misma categoría: Finance Toolkit, SolidInvoice, Korea Tax Calculator
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
Go package for CNN's Fear & Greed Index, a 0–100 gauge of US stock market sentiment. It returns the current score and rating, the values for the previous close, week, month and year, about a year of daily history, and the seven component indicators (market momentum, stock price strength, stock price breadth, put/call options, market volatility, junk bond demand, safe haven demand), each with its own score, rating and history of raw values. The module also ships a CLI and an MCP server, and has no dependencies outside the Go standard library.
go get github.com/wildsurfer/cnn-fear-and-greed-parse/v2
package main
import ( "context" "fmt"
cnnfag "github.com/wildsurfer/cnn-fear-and-greed-parse/v2" )
func main() { result, err := cnnfag.Get(context.Background()) if err != nil { panic(err) }
fmt.Printf("Now: %.0f (%s)\n", result.Score, result.Rating) fmt.Printf("One year ago: %.0f\n", result.OneYearAgo) fmt.Printf("History: %d daily points since %s\n", len(result.History), result.History[0].Date.Format("2006-01-02")) fmt.Printf("VIX indicator: %.0f (%s)\n", result.MarketVolatility.Score, result.MarketVolatility.Rating) }
Output:
Now: 64 (greed)
One year ago: 58 History: 250 daily points since 2025-08-11 VIX indicator: 50 (neutral)
An Indicator's History holds the raw underlying series (the S&P 500 level for momentum, the VIX level for volatility, ratios and spreads for the rest), and its Score is CNN's 0–100 normalization. To use your own http.Client (timeout, proxy), replace cnnfag.HTTPClient.
For cron jobs and shell pipelines, without writing Go:
go install github.com/wildsurfer/cnn-fear-and-greed-parse/v2/cmd/cnnfag@latest
$ cnnfag
64 (greed) as of 2026-08-11T00:00:00Z previous close 64 · week ago 60 · month ago 47 · year ago 58
$ cnnfag -json | jq .score 64.3714285714286
-json prints the full result, including the daily history. -timeout changes the request timeout (default 15s).
cnnfag mcp runs a Model Context Protocol server over stdio, so AI assistants can query the index. It exposes one tool, get_fear_and_greed, with an optional include_history argument. Configuration for MCP clients:
{
"mcpServers": { "cnnfag": { "command": "cnnfag", "args": ["mcp"] } } }
The client must be able to find the binary: use the full path (usually ~/go/bin/cnnfag) if your MCP client does not inherit your shell's PATH. Like the rest of the module, the server is built on the standard library only.
The server is also published to the MCP Registry as io.github.wildsurfer/cnnfag, with a container image at ghcr.io/wildsurfer/cnnfag for clients that prefer Docker over a local binary.
CNN does not offer a documented public API. This package requests the JSON endpoint that the Fear & Greed page itself uses:
https://production.dataviz.cnn.io/index/fearandgreed/graphdata
The endpoint rejects requests that do not look like they come from a browser, so the package sends browser-like User-Agent and Referer headers. This is the same data source used by the known wrappers in other languages.
A scheduled CI job runs the test suite against the real endpoint once a week, so a change on CNN's side is detected within days.
v2 is a full rewrite: CNN removed the HTML page that v1 parsed, so v1 stopped working and its data model no longer matches what CNN publishes. Update the import path first:
import cnnfag "github.com/wildsurfer/cnn-fear-and-greed-parse/v2"
Then adjust the calls:
| v1 | v2 |
|---|---|
cnnfag.Parse() | cnnfag.Get(ctx), takes a context.Context |
Result.Now.Value (int) | Result.Score (float64) |
Result.Now.Text | Result.Rating |
Result.PreviousClose.Value (int) | Result.PreviousClose (float64) |
Result.OneWeekAgo.Value, .OneMonthAgo.Value, .OneYearAgo.Value | same field names, now plain float64 |
Result.PreviousClose.Text and other past-period labels | removed; CNN's API has no labels for past periods, but every History point carries a rating |
Result.LastUpdateDate | Result.Timestamp, now an exact time from CNN instead of a parsed guess |
Result.ImageURL, Result.GetImageBytes() | removed; the needle image no longer exists |
ErrHTTPNon200 | ErrUnexpectedStatus, check with errors.Is |
ErrEmptyField | ErrEmptyResult |
ErrImgLoadNon200, ErrReadingBytes | removed with the image API |
| — | Result.History is new: about a year of daily scores |
Scores changed from rounded integers to the exact floats CNN serves, so 44 in v1 corresponds to something like 43.71 in v2. Round with %.0f or math.Round if you need the old look.
v1 (2021) parsed the HTML of money.cnn.com/data/fear-and-greed with goquery and could also download the index needle image. CNN removed that page, which broke parsing, and the image no longer exists. v2 (2026) is a rewrite on the JSON endpoint with a smaller API, historical data and zero dependencies. The last v1 release is tagged v1.2.0.
This package is not affiliated with or endorsed by CNN. The Fear & Greed Index and its values belong to CNN (Warner Bros. Discovery). The MIT license covers only the code in this repository and gives you no rights to CNN's data. CNN's Terms of Use permit personal use of site content and restrict commercial exploitation. If you use this data in a product, compliance is your responsibility, and the endpoint can change or disappear at any time.
MIT