A Model Context Protocol server providing market research and business analysis capabilities through 28 tools and integration with 8 economic data sources.
Created 3 months ago
A Model Context Protocol server providing market research and business analysis capabilities through 28 tools and integration with 8 economic data sources.
development
location
documentation
public
market research
business analysis
What is A Model Context Protocol server providing market research and business analysis capabilities through 28 tools and integration with 8 economic data sources.?
This MCP server provides comprehensive market research capabilities including 28 tools for market analysis, 15 business prompts for professional analysis, and integration with 8 economic data sources. It features smart defaults for immediate use, multiple transport methods, and real-time notifications.
Documentation
Market Sizing MCP Server
A Model Context Protocol server providing market research and business analysis capabilities through 28 tools, 15 business prompts, and integration with 8 economic data sources.
Overview
This MCP server provides comprehensive market research capabilities including:
28 Tools: Market analysis, data access, and business intelligence tools
15 Prompts: Professional business analysis templates for funding, strategy, and research
Data Integration: Alpha Vantage, BLS, Census, FRED, IMF, Nasdaq Data Link, OECD, World Bank
Smart Defaults: Pre-configured parameters for immediate use without setup
Multiple Transports: STDIO, Streamable HTTP, and SSE support
Capabilities
Market Analysis Tools
Total Addressable Market (TAM) and Serviceable Addressable Market (SAM) calculations
Market size estimation and forecasting
Industry analysis and competitive intelligence
Market segmentation and opportunity identification
Data validation and cross-source verification
Business Intelligence Prompts
Startup funding pitch preparation
Private equity investment analysis
Corporate strategy and market entry
Crisis management and regulatory impact assessment
ESG and sustainability analysis
Data Access
Real-time financial and economic data retrieval
Multi-source data aggregation and comparison
Intelligent routing based on data type and availability
Comprehensive caching for performance optimization
MCP Protocol Features
Real-time Notifications: 6 types of business-specific notifications for market intelligence, data source health, calculation milestones, and performance monitoring
Multiple Transports: Full support for STDIO, HTTP, and Server-Sent Events (SSE) protocols
Resource Access: Documentation and status information available through MCP resources
Tool Discovery: Complete tool catalog with smart defaults and validation
Installation# Prerequisites
Node.js 20.x or later
npm or yarn
API keys for data sources (optional, see Configuration)
Quick Setup
git clone https://github.com/your-username/TAM-MCP-Server.git
cd TAM-MCP-Server
# Install dependencies
npm install
# Configure environment
cp .env.example .env\n\n# Edit .env with your API keys
# Build and start (HTTP - recommended)
npm run build
npm run start:http
Development Setup
chmod +x scripts/dev-setup.sh
./scripts/dev-setup.sh
# Or manual setup
npm install
npm run build
npm run start # HTTP server
npm run start:stdio # STDIO transport
Docker Deployment
docker build -t tam-mcp-server .
# Run container with environment file
docker run -p 3000:3000 --env-file .env tam-mcp-server
# Or run with individual environment variables
docker run -p 3000:3000 \
- e ALPHA_VANTAGE_API_KEY=your_key_here \
- e FRED_API_KEY=your_key_here \
- e NODE_ENV=production \
tam-mcp-server
MCP Integration
HTTP Transport (Recommended)
For Claude Desktop, add to your configuration:
tool_guidance - Interactive guide to TAM MCP Server tools
best_practices_guide - Best practices for market analysis
Designed for AI applications serving business analysts, developers, and market researchers with deep market intelligence and data access tools.
Development# Testing
The project uses a comprehensive test structure with Vitest as the primary testing framework:
tests/
├── unit/ # Fast, isolated component tests
├── integration/ # Component interaction tests
├── e2e/ # End-to-end workflow tests
├── scripts/ # Integration test scripts
│ ├── test-comprehensive.mjs # Comprehensive testing
│ ├── test-http-streaming.mjs # HTTP streaming transport
│ ├── test-simple-mcp.mjs # Basic MCP functionality
│ └── test-mcp-tool-calls.mjs # Individual tool validation
├── fixtures/ # Test data and mock objects
├── utils/ # Test utilities and helpers
└── setup.ts # Vitest global configuration
Running Tests
npm test
# Run by category
npm run test:unit # Fast unit tests
npm run test:integration # Integration tests
npm run test:e2e # End-to-end tests
# Advanced options
npm run test:coverage # With coverage report
npm run test:watch # Watch mode for development
npm run test:ui # Vitest UI mode
npm run test:ci # CI-optimized test run
# Run integration scripts
npm run test:scripts # Comprehensive backend integration
npm run test:scripts:http # HTTP streaming transport
npm run test:scripts:simple # Basic MCP functionality
npm run test:scripts:tools # Individual tool validation
npm run test:scripts:inspector # MCP Inspector compatibility
# Or run directly
node tests/scripts/test-comprehensive.mjs
node tests/scripts/test-http-streaming.mjs
API Testing with Postman
Import the comprehensive Postman collection for testing both MCP endpoints and backend API integrations:
sessionId: (automatically set after initialization)
Run Tests:
Health check and server status
MCP session initialization
All 28 tools (11 market analysis + 17 data access)
Resource access endpoints
Session management and cleanup
Newman CLI Testing
Automate Postman tests from command line:
npm install -g newman
# Run backend API tests
newman run examples/TAM-MCP-Server-Postman-Collection.json \
- e tests/postman/environments/TAM-MCP-Server-Environment.postman_environment.json \
- -reporters cli,json
# Or use npm script
npm run test:postman
Test Coverage
Unit Level: Individual tool functionality and business logic
Integration Level: MCP protocol compliance and server behavior
System Level: Complete workflows through real transports
API Level: REST endpoints and session management
Performance: Response time and resource usage monitoring
Code coverage reports are generated in the coverage/ directory.