APEX Research MCP Server

APEX Research MCP Server

Enables quantitative trading research by providing tools to backtest strategies, list market datasets, review forward-test logs, and search previously rejected hypotheses, all through an MCP interface.

Category
Visit Server

README

APEX Research — MCP Server (FastMCP)

A Model Context Protocol server that exposes a quantitative trading-research toolkit as tools an LLM/agent can call. Built in Python with FastMCP.

Each tool is a plain typed Python function; FastMCP turns its type hints + docstring into the JSON schema the model sees. Tools run real computation over real market datasets.

Tools

Tool What it does
list_datasets Report which market datasets + live forward-test logs are available
run_orb_backtest(instrument, cost_bps) Backtest the opening-range-breakout rule on M15 data; returns expectancy (R), win rate, profit factor, max drawdown
forward_test_report(market) Summarise a live forward-test log (n, expectancy, win rate)
search_graveyard(query) Search already-rejected hypotheses so an agent doesn't re-test a dead idea

Run it

pip install fastmcp pandas numpy
python mcp_server/apex_mcp.py        # starts the MCP server (stdio transport)

Test it (no external client needed)

python mcp_server/test_apex_mcp.py   # in-memory FastMCP Client calls every tool

Connect it to an MCP client (e.g. Claude Desktop)

Add to the client's MCP config:

{
  "mcpServers": {
    "apex-research": {
      "command": "python",
      "args": ["C:\\Users\\user\\Desktop\\Apex\\mcp_server\\apex_mcp.py"]
    }
  }
}

Then the model can call, e.g. "backtest the ORB rule on DAX" and it invokes run_orb_backtest.

What this demonstrates

  • Building MCP servers in Python with FastMCP (typed tools, auto-generated schemas)
  • Clean tool design: clear contracts, input validation, graceful errors
  • Local testing of an MCP server with an in-memory client
  • Real backend/data work (pandas/numpy over multi-year market data)

Built by M. Junaid Shahid.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured