Skip to main content
Glama
dhirajpatra

MarketIntel MCP Server

by dhirajpatra

MarketIntel MCP Server

A minimal MCP server for market research built with FastMCP and the Tavily API with n8n automation.

Overview

This repository includes:

  • server.py — MCP server implementation using FastMCP

  • client.py — example client that compares two companies using the MCP server

  • main.py — placeholder entrypoint

  • MCP-Market-Research Agent.json — optional integration configuration

  • requirements.txt / pyproject.toml — Python dependencies

Related MCP server: tavily-fastmcp

Steps

  1. Clone or download this repository.

  2. Create a Python virtual environment in the repository root:

python -m venv .venv
source .venv/bin/activate
  1. Install the dependencies:

pip install -r requirements.txt
  1. Copy env-example file to a .env file in the repository root with your Tavily API key:

TAVILY_API_KEY=your_api_key_here
N8N_API_KEY=your_api_key_here
  1. Start the MCP server:

python server.py
  1. In a separate terminal, run the example client to compare two companies:

python client.py "openai vs anthropic"
  1. To use a custom server endpoint, set MARKETINTEL_ENDPOINT and rerun the client:

MARKETINTEL_ENDPOINT=http://127.0.0.1:8000/mcp python client.py "openai vs anthropic"

Prerequisites

  • Python 3.13+

  • A valid Tavily API key

Setup

  1. Create and activate a virtual environment:

python -m venv .venv
source .venv/bin/activate
  1. Install dependencies:

pip install -r requirements.txt
  1. Create a .env file containing:

TAVILY_API_KEY=your_api_key_here

Running the server

Start the server with:

python server.py

The server listens on http://0.0.0.0:8000 and exposes the MCP endpoint at http://127.0.0.1:8000/mcp.

Using the client

Run the example client to compare two companies:

python client.py "openai vs anthropic"

To override the endpoint:

MARKETINTEL_ENDPOINT=http://127.0.0.1:8000/mcp python client.py "simplilearn vs edureka"

Project structure

.env                        # local environment variables
README.md                   # project documentation
server.py                   # MCP server implementation
client.py                   # example FastMCP client
main.py                     # placeholder entrypoint
MCP-Market-Research Agent.json  # optional integration config
pyproject.toml              # project metadata
requirements.txt            # dependency list
python-version              # pinned Python version
uv.lock                     # dependency lockfile
.venv/                      # virtual environment (ignored)

Server capabilities

The server exposes the following tools:

  • company_overview

  • list_competitors

  • product_portfolio

  • pricing_snapshot

  • recent_news_pulse

It also defines a market topics resource and a competitor analysis prompt.

Environment variables

  • TAVILY_API_KEY — required for Tavily access

  • MARKETINTEL_ENDPOINT — optional client override

Notes

  • This repository does not include an mcp_server/ package or tests/ directory.

  • The current implementation is centered on the server.py and client.py examples.

Development

To install optional dev tooling:

pip install flake8
flake8 .

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    This MCP server performs multi-topic searches in business, news, finance, and politics using the Tavily API, providing high-quality sources and intelligent summaries.
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A typed FastMCP server that wraps Tavily's web research API, providing tools for search, extract, map, crawl, and research workflows via MCP with prompts and resources.
    8
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Multi-purpose research MCP server integrating web search, deep research, web scraping, research methodology routing, and GPT Researcher report generation.
    MIT