M

Market Intelligence

by stocktrends.com · com.stocktrends/market-intelligence

Local MCP adapter for public Stock Trends API resources, enabling credential-free access to public resources and a workflow cost estimation tool. It does not generate investment advice; it only translates published API responses for MCP clients.

npm Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "com-stocktrends-market-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "@stocktrends-publications/stocktrends-mcp-server"
      ],
      "env": {
        "STOCKTRENDS_API_KEY": "<VALUE>",
        "STOCKTRENDS_API_BASE_URL": "https://api.stocktrends.com",
        "STOCKTRENDS_MCP_LOG_LEVEL": "warn",
        "STOCKTRENDS_MCP_TRANSPORT": "stdio",
        "STOCKTRENDS_ENABLE_PAID_TOOLS": "false",
        "STOCKTRENDS_ENABLE_X402_RELAY": "false",
        "STOCKTRENDS_MAX_STC_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_MAX_USD_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_ENABLE_PAID_EXECUTION": "false",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL": "0",
        "STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT": "true",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION": "0",
        "STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING": "false",
        "STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION": "false",
        "STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY": "false"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "com-stocktrends-market-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "@stocktrends-publications/stocktrends-mcp-server"
      ],
      "env": {
        "STOCKTRENDS_API_KEY": "<VALUE>",
        "STOCKTRENDS_API_BASE_URL": "https://api.stocktrends.com",
        "STOCKTRENDS_MCP_LOG_LEVEL": "warn",
        "STOCKTRENDS_MCP_TRANSPORT": "stdio",
        "STOCKTRENDS_ENABLE_PAID_TOOLS": "false",
        "STOCKTRENDS_ENABLE_X402_RELAY": "false",
        "STOCKTRENDS_MAX_STC_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_MAX_USD_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_ENABLE_PAID_EXECUTION": "false",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL": "0",
        "STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT": "true",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION": "0",
        "STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING": "false",
        "STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION": "false",
        "STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY": "false"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "com-stocktrends-market-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "@stocktrends-publications/stocktrends-mcp-server"
      ],
      "env": {
        "STOCKTRENDS_API_KEY": "<VALUE>",
        "STOCKTRENDS_API_BASE_URL": "https://api.stocktrends.com",
        "STOCKTRENDS_MCP_LOG_LEVEL": "warn",
        "STOCKTRENDS_MCP_TRANSPORT": "stdio",
        "STOCKTRENDS_ENABLE_PAID_TOOLS": "false",
        "STOCKTRENDS_ENABLE_X402_RELAY": "false",
        "STOCKTRENDS_MAX_STC_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_MAX_USD_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_ENABLE_PAID_EXECUTION": "false",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL": "0",
        "STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT": "true",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION": "0",
        "STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING": "false",
        "STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION": "false",
        "STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY": "false"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "com-stocktrends-market-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "@stocktrends-publications/stocktrends-mcp-server"
      ],
      "env": {
        "STOCKTRENDS_API_KEY": "<VALUE>",
        "STOCKTRENDS_API_BASE_URL": "https://api.stocktrends.com",
        "STOCKTRENDS_MCP_LOG_LEVEL": "warn",
        "STOCKTRENDS_MCP_TRANSPORT": "stdio",
        "STOCKTRENDS_ENABLE_PAID_TOOLS": "false",
        "STOCKTRENDS_ENABLE_X402_RELAY": "false",
        "STOCKTRENDS_MAX_STC_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_MAX_USD_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_ENABLE_PAID_EXECUTION": "false",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL": "0",
        "STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT": "true",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION": "0",
        "STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING": "false",
        "STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION": "false",
        "STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY": "false"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "com-stocktrends-market-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "@stocktrends-publications/stocktrends-mcp-server"
      ],
      "env": {
        "STOCKTRENDS_API_KEY": "<VALUE>",
        "STOCKTRENDS_API_BASE_URL": "https://api.stocktrends.com",
        "STOCKTRENDS_MCP_LOG_LEVEL": "warn",
        "STOCKTRENDS_MCP_TRANSPORT": "stdio",
        "STOCKTRENDS_ENABLE_PAID_TOOLS": "false",
        "STOCKTRENDS_ENABLE_X402_RELAY": "false",
        "STOCKTRENDS_MAX_STC_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_MAX_USD_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_ENABLE_PAID_EXECUTION": "false",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL": "0",
        "STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT": "true",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION": "0",
        "STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING": "false",
        "STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION": "false",
        "STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY": "false"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "com-stocktrends-market-intelligence": {
      "command": "npx",
      "args": [
        "-y",
        "@stocktrends-publications/stocktrends-mcp-server"
      ],
      "env": {
        "STOCKTRENDS_API_KEY": "<VALUE>",
        "STOCKTRENDS_API_BASE_URL": "https://api.stocktrends.com",
        "STOCKTRENDS_MCP_LOG_LEVEL": "warn",
        "STOCKTRENDS_MCP_TRANSPORT": "stdio",
        "STOCKTRENDS_ENABLE_PAID_TOOLS": "false",
        "STOCKTRENDS_ENABLE_X402_RELAY": "false",
        "STOCKTRENDS_MAX_STC_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_MAX_USD_PER_SESSION": "<VALUE>",
        "STOCKTRENDS_ENABLE_PAID_EXECUTION": "false",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL": "0",
        "STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT": "true",
        "STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION": "0",
        "STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING": "false",
        "STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION": "false",
        "STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY": "false"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
STOCKTRENDS_API_KEY No SECRET. Use placeholder in all docs. Required for paid exposure and execution. Sent only as X-API-Key header to approved endpoints. Never logged.
STOCKTRENDS_API_BASE_URL No Must be an approved Stock Trends HTTPS origin. Not a secret. Default: https://api.stocktrends.com
STOCKTRENDS_MCP_LOG_LEVEL No Normal logs go to stderr, never stdout. Not a secret. Default: warn
STOCKTRENDS_MCP_TRANSPORT No Only 'stdio' is supported. Not a secret. Default: stdio
STOCKTRENDS_ENABLE_PAID_TOOLS No Exposure flag. When 'true' with a configured API key, exposes the paid tool definitions. Never executes on its own. Not a secret. Default: false
STOCKTRENDS_ENABLE_X402_RELAY No When 'true', exposes the nine paid semantic tool names without an API key. Cannot be mixed with STOCKTRENDS_ENABLE_PAID_TOOLS. Not a secret. Default: false
STOCKTRENDS_MAX_STC_PER_SESSION No STC budget cap. A nonzero STC cost with no STC cap is denied. Not a secret.
STOCKTRENDS_MAX_USD_PER_SESSION No USD budget cap. A nonzero USD cost with no USD cap is denied. Not a secret.
STOCKTRENDS_ENABLE_PAID_EXECUTION No Execution flag. Requires paid tools flag, API key, pricing preflight, nonzero caps, and budget cap. Not a secret. Default: false
STOCKTRENDS_MAX_PAID_CALLS_PER_TOOL No Per-tool paid-call cap. 0 denies; requires explicit nonzero value. Not a secret. Default: 0
STOCKTRENDS_REQUIRE_PRICING_PREFLIGHT No Pricing preflight is mandatory; setting to 'false' denies paid execution. Not a secret. Default: true
STOCKTRENDS_MAX_PAID_CALLS_PER_SESSION No Per-session paid-call cap. 0 denies all; live execution requires explicit nonzero value. Not a secret. Default: 0
STOCKTRENDS_ENABLE_X402_PROOF_FORWARDING No Unsupported. Off values accepted; 'true' fails startup. Not a secret. Default: false
STOCKTRENDS_ENABLE_X402_CHALLENGE_EXECUTION No Only usable with STOCKTRENDS_ENABLE_X402_RELAY=true. Literal 'true' preserves deterministic mock results. Not a secret. Default: false
STOCKTRENDS_ENABLE_X402_LIVE_CHALLENGE_RELAY No Only literal 'true' enables; requires relay and challenge flags to be true. Allows at most one no-key GET per tool, capped. Not a secret. Default: false

Similar servers