Stock News Search (Tavily) MCP server

Provides a specialized tool for retrieving stock-related news using the Tavily API, enabling financial searches by stock symbol and company name with configurable parameters for Vietnamese financial sources like CafeF and Nguoi Quan Sat.
Back to servers
Provider
Cognitive Stack
Release date
Apr 25, 2025
Language
TypeScript
Package
Stats
211 downloads
3 stars

The Search Stock News MCP server provides real-time stock news search capabilities through the Tavily API, allowing MCP-compatible clients to search for stock-related news with customizable parameters, templates, and domain-specific filtering options.

Prerequisites

Before installing the Search Stock News MCP server, ensure you have:

  • Tavily API Key
  • Claude Desktop, Cursor, or any MCP-compatible client
  • Node.js (v16 or higher)
  • Git installed (only needed if using Git installation method)

Installation Options

Running with NPX

The simplest way to run the server is with NPX:

npx -y search-stock-news-mcp@latest

Installing via Smithery

To install automatically via Smithery for Claude Desktop:

npx -y @smithery/cli install search-stock-news-mcp --client claude

Configuring MCP Clients

Configuring Cline

Via Marketplace (Recommended):

  1. Open Cline in VS Code
  2. Click on the Cline icon in the sidebar
  3. Navigate to the "MCP Servers" tab
  4. Search "Search Stock News" and click "install"
  5. When prompted, enter your Tavily API key

Manual Configuration:

  1. Open the Cline MCP settings file:
# For macOS:
code ~/Library/Application\ Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

# For Windows:
code %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  1. Add the server configuration:
{
  "mcpServers": {
    "search-stock-news-mcp": {
      "command": "npx",
      "args": ["-y", "search-stock-news-mcp@latest"],
      "env": {
        "TAVILY_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Configuring Cursor

  1. Open Cursor Settings
  2. Navigate to Features > MCP Servers
  3. Click on the "+ Add New MCP Server" button
  4. Fill out the following information:
    • Name: "search-stock-news-mcp"
    • Type: "command"
    • Command:
    env TAVILY_API_KEY=your-api-key-here npx -y search-stock-news-mcp@latest
    

Configuring Claude Desktop

For macOS:

touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"

For Windows:

code %APPDATA%\Claude\claude_desktop_config.json

Add the server configuration:

{
  "mcpServers": {
    "search-stock-news-mcp": {
      "command": "npx",
      "args": ["-y", "search-stock-news-mcp@latest"],
      "env": {
        "TAVILY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage Examples

Basic Stock News Search

{
  "symbol": "AAPL",
  "companyName": "Apple Inc.",
  "maxResults": 10
}

Advanced Search with Filters

{
  "symbol": "TSLA",
  "companyName": "Tesla Inc.",
  "maxResults": 20,
  "searchDepth": "advanced",
  "minScore": 0.6
}

Custom Domain Search

{
  "symbol": "MSFT",
  "companyName": "Microsoft Corporation",
  "includeDomains": ["reuters.com", "bloomberg.com"]
}

Troubleshooting

Common Issues

  1. Server Not Found

    • Verify npm installation
    • Check configuration syntax
    • Ensure Node.js is properly installed
  2. API Key Issues

    • Verify your Tavily API key is valid
    • Check the API key is correctly set in config
    • Ensure no spaces or quotes around the API key
  3. Search Results Issues

    • Check search parameters are within valid ranges
    • Verify domain filters are correctly formatted
    • Ensure company name and symbol are accurate

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later