Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Market Sizing MCP ServerCalculate the TAM and SAM for the cloud security market in North America"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Development Setup
Docker Deployment
MCP Integration
HTTP Transport (Recommended) For Claude Desktop, add to your configuration:
STDIO Transport (Alternative)
For MCP Inspector:
Usage
Smart Default Values - Zero-Friction Start
Get professional market insights instantly - no parameter research required!
All 28 tools include intelligent default values that let you start analyzing immediately:
Professional Defaults Include:
Stock Analysis: AAPL, MSFT, GOOGL (Fortune 500 companies)
Economic Data: US GDP, Global indicators, 2020-2024 timeframes
Industry Codes: Technology sector, Professional Services (NAICS 54)
Market Calculations: $10B base market, 15% growth rates, 5-year projections
Perfect for:
First-time users getting immediate results without parameter research
Demo environments showcasing professional market analysis capabilities
Rapid prototyping with realistic business data and scenarios
Basic Tool Usage
Business Analysis Prompts
Access professional templates through the prompts interface:
MCP Tools - Three-Tier Architecture System
The TAM MCP Server provides 28 total MCP tools organized in three complementary tiers:
Tier 1: Direct Data Access Tools (13 tools)
Purpose: Raw access to external data sources
Target Users: Developers, data engineers, custom analytics builders
alphaVantage_getCompanyOverview: Get detailed company overview and financialsalphaVantage_searchSymbols: Search for stock symbols and company namesbls_getSeriesData: Retrieve Bureau of Labor Statistics employment datacensus_fetchIndustryData: Access U.S. Census Bureau industry statisticscensus_fetchMarketSize: Get market size data from Census surveysfred_getSeriesObservations: Fetch Federal Reserve economic data seriesimf_getDataset: Access International Monetary Fund datasetsimf_getLatestObservation: Get latest IMF economic observationsnasdaq_getDatasetTimeSeries: Retrieve Nasdaq Data Link time seriesnasdaq_getLatestDatasetValue: Get latest values from Nasdaq datasetsoecd_getDataset: Access OECD statistical datasetsoecd_getLatestObservation: Get latest OECD economic observationsworldBank_getIndicatorData: Fetch World Bank development indicators
Tier 2: Basic Market Tools (4 tools)
Purpose: Foundational market analysis capabilities
Target Users: Business analysts starting with basic market research
industry_search: Basic industry data retrieval from multiple sourcestam_calculator: Basic Total Addressable Market calculationsmarket_size_calculator: Basic market size estimation with methodology explanationscompany_financials_retriever: Basic company financial data retrieval
Tier 3: Business Analysis Tools (11 tools)
Purpose: Advanced market intelligence and comprehensive business analysis
Target Users: Senior analysts, market researchers, investment teams
industry_analysis: Enhanced multi-source industry analysis with intelligent rankingindustry_data: Detailed industry intelligence with trends, ESG, and key playersmarket_size: Advanced market size estimation and analysis with confidence scoringtam_analysis: Advanced Total Addressable Market calculations with scenario projectionssam_calculator: Serviceable Addressable Market with constraint analysismarket_segments: Hierarchical market segmentation analysismarket_forecasting: Time series forecasting with scenario analysismarket_comparison: Multi-market comparative analysis and rankingsdata_validation: Cross-source data quality validation and scoringmarket_opportunities: Market gap and growth opportunity identificationgeneric_data_query: Direct access to any data source service and method
Data Sources
The server integrates with 8 data sources:
Alpha Vantage: Company financials, stock data
BLS: Employment and labor statistics
Census: Industry and demographic data
FRED: Federal Reserve economic data
IMF: International economic data
Nasdaq Data Link: Financial datasets
OECD: International statistics
World Bank: Development indicators
Transport Methods
HTTP Server (Recommended)
STDIO Transport
Server-Sent Events
Configuration
Environment Variables
Copy .env.example to .env and configure as needed:
Data Source Setup
Required Keys:
Alpha Vantage: Free tier provides 25 requests/day
Census Bureau: Free API access
FRED: Free API access
Nasdaq Data Link: Free tier available
No Key Required:
World Bank, OECD, IMF (public APIs)
BLS (optional key for higher limits)
Tool Defaults
All tools include professional defaults. See Default Values Guide for complete parameter lists.
Example Defaults:
Stock symbols: AAPL, MSFT, GOOGL
Industry codes: NAICS 54 (Professional Services)
Market sizes: $10B base with 15% growth
Time periods: 2020-2024
Caching Strategy
In-Memory Cache (Default)
NodeCache-based with configurable TTLs
Automatic cleanup and statistics
Per-source cache invalidation
Redis Cache (Production)
Project Structure
Tools Reference
MCP Data Access Tools (17 tools)
Direct Data Source Access (13 tools)
Source | Tools | Description |
Alpha Vantage |
| Company financials and stock data |
BLS |
| Bureau of Labor Statistics data |
Census |
| Industry and demographic data |
FRED |
| Federal Reserve economic data |
IMF |
| International economic data |
Nasdaq |
| Financial datasets |
OECD |
| International statistics |
World Bank |
| Development indicators |
Basic Market Tools (4 tools)
Tool | Description |
| Basic industry data search from sources |
| Basic Total Addressable Market calculations |
| Market size estimation and calculations |
| Enhanced company financial data retrieval |
Business Analysis Tools (11 tools)
Tool | Description |
| Enhanced multi-source industry analysis |
| Detailed industry intelligence with trends and key players |
| Advanced market size estimation with confidence scoring |
| Advanced Total Addressable Market calculations |
| Serviceable Addressable Market analysis |
| Hierarchical market segmentation |
| Time series forecasting with scenarios |
| Multi-market comparative analysis |
| Cross-source data quality validation |
| Market gap identification |
| Direct data source service access |
Business Prompts (15 templates)
15 Professional Business Analysis Prompts designed for real-world business scenarios:
Strategic Business Analysis
startup_funding_pitch - Series A-C funding presentations with TAM/SAM analysis
private_equity_research - Investment committee packages for PE deals
corporate_strategy_entry - Fortune 500 market entry strategy analysis
venture_capital_thesis - VC investment thesis development
asset_management_research - Institutional asset management research
Crisis & Specialized Analysis
crisis_management_analysis - Emergency market analysis for crisis response
regulatory_impact_assessment - Regulatory change impact analysis
international_expansion - Global market entry strategy analysis
technology_disruption_analysis - Technology disruption impact assessment
esg_sustainability_analysis - ESG and sustainability market analysis
Quick Analysis & Guidance
market_opportunity_scan - Rapid market opportunity identification
competitive_intelligence - Competitive landscape analysis
investment_screening - Investment opportunity screening
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:
Running Tests
API Testing with Postman
Import the comprehensive Postman collection for testing both MCP endpoints and backend API integrations:
MCP Server Testing Collection
Import Collection:
examples/TAM-MCP-Server-Postman-Collection.jsonSet Environment Variables:
serverUrl: http://localhost:3000sessionId: (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:
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.
Project Structure
API Testing
Use the included Postman collection:
Technology Stack
Language: TypeScript 5.x
Protocol: MCP 2025-03-26
Framework: Express.js 4.x
Validation: Zod schemas
Testing: Vitest + Postman
Cache: NodeCache (Redis optional)
Logging: Winston
Troubleshooting
Common Issues
Services showing as disabled despite API keys
Ensure
.envfile is in project rootCheck API key variable names match exactly
Restart server after adding keys
Verify startup logs show service initialization
MCP Inspector connection issues
Use:
npx @modelcontextprotocol/inspector node dist/stdio-simple.jsEnsure no console.log statements contaminate stdout
Check Winston logger uses stderr for output
Build errors
Run
npm installto update dependenciesCheck Node.js version (20.x recommended)
Clear build cache:
rm -rf dist && npm run build
No data returned from tools
Check service status in startup logs
Verify API quotas not exceeded
Test with
generic_data_querytoolCheck network connectivity
Getting Help
Check GitHub Issues
Review Release Notes
Submit issues with error logs and environment details
Documentation
Complete Documentation
Documentation Hub - Complete guide to all project documentation
Getting Started Guide - Quick setup and first-use instructions
Configuration Guide - Environment setup and API key management
Tools Reference - Complete tool documentation and usage examples
Prompts Guide - Business analysis prompt templates and scenarios
API Reference - Complete API documentation and integration guides
Default Values Guide - Smart defaults documentation
MCP Integration Guide - MCP resources and protocol usage
Development Documentation
Contributing Guide - Guidelines for contributors and developers
Security Policy - Security guidelines and vulnerability reporting
Release Notes - Detailed change history and version information
Changelog - Technical changes and updates
Testing Documentation
Integration Tests - Integration test scripts documentation
Examples & Scripts
Examples Directory - API examples and integration resources
Postman Collection - Comprehensive API testing collection
Development Scripts - Build and setup automation scripts
Implementation Guides
Notifications Guide - Real-time notification system
Architecture Overview - System design and architecture decisions
MCP Resources Access
All documentation is also accessible through the MCP protocol:
Available Documentation Resources:
README.md - Complete project overview and feature documentation
Getting Started Guide - Quick setup and first-use instructions
Configuration Guide - Environment setup and API key management
Tools Reference - Complete tool documentation and usage examples
Prompts Guide - Business analysis prompt templates and scenarios
API Reference - Complete API documentation and integration guides
Security Policy - Security guidelines and best practices
Contributing Guide - Development and contribution instructions
Contributing
Contributions welcome! See Contributing Guidelines for requirements.
License
MIT License - see LICENSE file for details.
Created by