Equity trend, relative-strength, expected-return, market-context, and research resources for agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Local Model Context Protocol (MCP) adapter for public Stock Trends API resources.
This repository is a thin local stdio adapter over the front-facing Stock Trends API. It has no independent analytical authority of its own.
Authority flows in one direction only:
The MCP adapter:
Public resources and the default/free mode described below are credential-free: no API key, subscription, or payment credential is required to install, inspect, or use them. The conditional paid ST-IM execution path is a separate, explicitly gated surface that is disabled by default (see Conditional Paid ST-IM Tools). An additional default-off x402 posture can expose the same paid semantic tool names. Relay plus challenge flags preserve the local mock-only behavior; a distinct third live flag may enable a capped, one-request no-key challenge path. Neither x402 mode accepts or forwards proof, sends a payment header, returns paid data, pays, or spends.
New here? Start with the Default / Free Mode Quickstart below to install and run the server credential-free, then Connect a local stdio MCP client to wire it into an MCP client, and read Paid Mode Configuration and the Security Model before setting any paid variable.
This is the recommended first path for installing or inspecting the server. In default mode, the server:
stocktrends_estimate_workflow_cost.Using only the existing project scripts:
This git clone + npm install + npm run build sequence, followed by local stdio execution of the compiled dist/server.js, remains fully supported and is the primary install channel for this repository. This package is also publicly available from the npm registry as @stocktrends-publications/stocktrends-mcp-server β see Public npm Installation directly below. A third, distinct install path β a locally built npm package artifact (a local .tgz, not a registry install) β has also been validated cross-platform; see Local Package Artifact Installation below and the Cross-Platform Package Install / Stdio Validation Report.
No environment variables or .env file are required for this path. Do not set STOCKTRENDS_ENABLE_PAID_TOOLS, STOCKTRENDS_API_KEY, or STOCKTRENDS_ENABLE_PAID_EXECUTION while testing default/free mode.
Optional: npm start starts the local stdio server process directly and is mainly useful as a manual smoke check (it will sit waiting for JSON-RPC input on stdin). Stop it with Ctrl+C before launching the server via MCP Inspector below.
This package is publicly published to the npm registry as @stocktrends-publications/stocktrends-mcp-server. Anyone can install it by name, credential-free, without cloning this repository:
For a reproducible install pinned to an exact release, append @<version> (for example @1.0.0) to the command above; omit the version to receive the latest published release. Once installed, the package provides an npm-managed command shim (not a checkout-relative dist/server.js path) β see Connect a local stdio MCP client below for configuration examples covering both a package-installed shim and a checkout-relative path.
The 1.0.0 release was verified byte-for-byte (SHA-256) against its frozen, offline-validated release-candidate artifact before publication, and anonymous installation by name plus a Windows MCP initialize/list-only handshake were validated against the published package (see docs/SECURITY_MODEL.md Β§18 and the MCP Registry Readiness Implementation Notes). Version 1.0.1 prepares this package's official MCP Registry identity (com.stocktrends/market-intelligence, declared in server.json); MCP Registry publication itself is a separate, later, explicitly authorized step and is not claimed as complete by this README.
In addition to the public npm install above, this repository's package can also be built and packed locally as an installable npm artifact β on Windows and WSL2 Ubuntu (see the Cross-Platform Package Install / Stdio Validation Report). This path is useful for testing an unreleased local build against the published package's identity; it is not required for normal installation.
.tgz is committed, and none ships with a checkout.package.json carries the same public identity the published npm package uses: the scoped name @stocktrends-publications/stocktrends-mcp-server, the MCP Registry identity mcpName com.stocktrends/market-intelligence, and an explicit public publishConfig (access: public, the public npm registry) β see the Package Publication Configuration Implementation Notes and the MCP Registry Readiness Implementation Notes.To build the local artifact yourself from a checkout:
This produces stocktrends-publications-stocktrends-mcp-server-1.0.1.tgz in the current directory β the reviewed closed artifact allowlist is dist/**/*.js, dist/**/*.d.ts, README.md, and LICENSE (see the Package Metadata and Closed Artifact Allowlist Implementation). Install it into a separate consumer project (not this checkout):
This local-artifact path and the Public npm Installation path above install the same reviewed package identity through two different channels; prefer the public npm install unless you specifically need to test an unreleased local build.
Once installed, the package provides an npm-managed command shim rather than a checkout-relative dist/server.js path. On POSIX systems (Linux, macOS, WSL) this is a symlink at node_modules/.bin/stocktrends-mcp-server; on Windows it is a generated shim at node_modules\.bin\stocktrends-mcp-server.cmd. Do not assume the bin is installed globally β resolve it from the consumer project's own node_modules/.bin. See Connect a local stdio MCP client below for package-installed client configuration examples alongside the checkout examples.
After building (npm run build), point the MCP Inspector at the compiled stdio server, with no paid-mode environment variables set:
In the Inspector UI, confirm:
stocktrends_estimate_workflow_cost, and the paid tools (stocktrends_get_stim_latest, stocktrends_get_stim_history, stocktrends_get_indicators_latest, stocktrends_get_indicators_history, stocktrends_get_selections_latest, stocktrends_get_market_regime_latest, stocktrends_get_market_regime_history, stocktrends_get_breadth_sector_latest, stocktrends_get_leadership_summary_latest) are not visible.stocktrends://api/openapi, stocktrends://ai/context) are listed and readable without any credential configured.This check confirms the free/default boundary without requiring or triggering any paid execution.
For a fuller step-by-step Inspector procedure β default/free listing, paid-exposed listing without execution, and a rollback checklist β see the Phase 5A MCP Inspector Validation Runbook (its paid-exposed surface and resource counts were correct when written for the Phase 4-era three-tool surface; current counts are documented in this README).
Free/default mode needs no API key, so nothing secret is involved in this quickstart. Always test and demonstrate default mode without a key. The full credential-handling rules β placeholders only, never commit or paste a real key β are consolidated in the top-level Secret Safety section.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/stock-trends-market-intelligence)<a href="https://allmcps.com/mcp/stock-trends-market-intelligence"><img src="https://allmcps.com/api/badge/stock-trends-market-intelligence?style=directory" alt="Stock Trends Market Intelligence on AllMCPs" /></a>