Skip to main content

Why It Matters

MCP (Model Context Protocol) has become the standard way for integrating pre-made workflows into AI agents. By integrating Bigdata Research Tools with MCP, users can now seamlessly incorporate the advanced workflows into their AI-driven investment analysis workflows. While we provide a ready-to-use MCP search service that offers powerful similarity search capabilities across transcripts, news, filings, and uploaded documents, we also believe in the immense value of customization. Every organization has unique workflows, specific data requirements, and distinct analytical needs that can be best served through tailored MCP implementations.

A Real-World Use Case

This cookbook demonstrates how to build your own MCP with three practical examples that showcase the power of customization:
  1. Watchlist Manager - Create and manage custom company watchlists for targeted analysis
  2. Thematic Screener - Screen companies against specific investment themes using advanced AI workflows
  3. Concurrent Search - Execute multiple search queries simultaneously for comprehensive and fast data retrieval
We’ll walk through creating a local MCP server that hosts these tools and show how to configure it with your preferred AI client. You’ll need one of the following MCP-compatible clients to follow along: Each client offers unique strengths, and we’ll demonstrate how to leverage them to generate different examples using your custom MCP tools. You can jump directly to your preferred client: Ready to get started? Let’s dive in!
Open in GitHub

Prerequisites

To run the run the custom MCP, you can choose between two options:
  • 💻 GitHub cookbook
    • Use this if you prefer working locally or in a custom environment.
    • Follow the setup and execution instructions in the README.md.
    • API keys are required:
      • Option 1: Follow the key setup process described in the README.md
      • Option 2: Refer to this guide: How to initialise environment variables
        • ❗ When using this method, you must manually add the OpenAI API key:
  • 🐳 Docker Installation - Docker installation provides an alternative setup method with containerized deployment, simplifying the environment configuration for those preferring Docker-based solutions.

Setup and Imports

Below is the Python code required for setting up our environment and importing necessary libraries. We will take advantage of the uv tool to run our script in an isolated environment, using their script dependencies. Here the main configuration is changing the LLM_MODEL variable to select the LLM model you want to use for the thematic screener. If you only plan to utilize the other tools, you can skip this step. The second configuration is the TRANSPORT variable, which can be set to either "sse" (Server-Sent Events) or "streamable-http". The "sse" option is the only one supported by ChatGPT’s developer mode, while "streamable-http" offers better compatibility with various clients, including Claude and Cursor.
For more details on how to configure each LLM provider, follow this https://github.com/Bigdata-com/bigdata-research-tools?tab=readme-ov-file#llm-integration
build_your_mcp.py

Configure and start the MCP server

Next, we will configure and start the MCP server. The server will host the tools we are going to use in the use cases: Thematic Screener, a Bigdata.com search tool and a watchlist management tool. How to run and configure the screener is explained in more details in the Thematic Screener documentation.
build_your_mcp.py
Now that it is configured, you can run the MCP server with:

ChatGPT Integration

Connecting to the MCP server from ChatGPT

Custom MCP integration only works with ChatGPT Plus or Pro subscriptions in developer mode. Also, ChatGPT requires MCP servers to be accessible over the internet, so make sure your server is publicly accessible.
To enable developer mode in ChatGPT, follow these steps from the official webpage:
  1. Enable Settings > Connectors > Advanced settings > Developer mode.
  2. Now, create a connector in Settings > Connectors > Create and fill the details. Remember the MCP must use the sse transport.

Generating a Dynamic Dashboard

On the main ChatGPT interface, you can now prompt your agent to generate a dashboard with data from the premium sources available in Bigdata.com. First, enable developer mode and thinking mode in the prompt and select the source we have created before. Now, let’s run it using this prompt as an example:
You may need to approve the agent’s access to the necessary tools and data sources.

Showcase of the generated report

Example Outputs

Chat Conversation

Conversation on developer mode with ChatGPT 5 Thinking.

Generated Dashboard

Dashboard generated by ChatGPT 5 Thinking.

Claude Desktop Integration

Connecting to the MCP server from Claude Desktop

Make sure your local MCP server is running on http://localhost:8000 before configuring Claude Desktop.Node.js must be installed on your operating system for the MCP integration to work with Claude Desktop.Windows users: Install Node.js in a folder with a name that does not contain spaces. By default, the installation wizard will install it in C:\Program Files\nodejs\npx.cmd, which includes a space in the path. Instead, create a folder without a space in the name and install it there, for instance, in C:\program_files\
Open Claude Desktop Settings, click on Developer and then on Edit Config to open the configuration file claude_desktop_config.json. Claude Desktop Developer Copy and paste the below configuration for your custom MCP server:
To finalize, you need to restart Claude Desktop. Ensure that you terminate Claude Desktop properly. When you open it again, click on your Avatar and Settings to see the running custom MCP tools.
You may need to approve Claude’s access to the MCP tools when first using them.

Generating Claude Artifacts

Now that the MCP server is running and connected to Claude Desktop, you can leverage the custom tools to generate interactive Claude Artifacts. These artifacts can include dynamic dashboards, network diagrams, and comprehensive analysis reports. You can prompt Claude to use the available tools for complex workflows. Here are examples of the types of interactive artifacts you can generate:

Example 1: Market Analysis Dashboard

Visa Fees Analysis Dashboard

Example 2: Conflict Analysis

Ukraine Conflict Analysis Dashboard

Example 3: Network Analysis

View Full Dashboard

Cursor Integration

Connecting to the MCP server from Cursor

In Cursor, go to File > Preferences > Cursor Preferences > MCP > New MCP Server and add the following configuration:
After saving, you should see the new server in the list of MCP servers, with the list of available tools.

Generating Thematic Screening Reports

Now that the MCP server is running and connected to Cursor, let’s prompt our agent to generate a thematic screening report and write it as a markdown file. First, we want the agent to create a watchlist with the companies we want to screen. Then, we will ask the agent to screen the companies in this watchlist for a specific theme and fiscal year. Let’s use this prompt as an example:
You may need to approve the agent’s access to the necessary tools and data sources.

Showcase of the generated report

Example Generated Report

Here’s a sample of the markdown report that Cursor can generate:

Next Generation Defense — 2024 Watchlist Screening

  • Watchlist: Next Generation Defense
  • Fiscal Year: 2024
  • Theme: Next Generation Defense
Summary
Below are the screening results for the requested watchlist, sorted by Composite Score (descending). Higher Composite Scores indicate broader and/or deeper alignment to the theme across tracked capability areas.
Results
No detected signals (FY2024)
  • 3M Co.
  • IBM Corp.
Notes
  • The results reflect signals mapped to Next Generation Defense capability areas for FY2024, aggregated into a Composite Score per company.
  • Companies with no detected FY2024 signals are listed separately above.