TAM
A comprehensive Model Context Protocol (MCP) server for market sizing analysis, TAM/SAM calculations, and industry research. Built with TypeScript, Express.js, and following the MCP specification.
claude mcp add --transport stdio gvaibhav-tam-mcp-server npm run start:http \ --env NODE_ENV="production" \ --env IMF_API_KEY="<your_imf_api_key>" \ --env FRED_API_KEY="<your_fred_api_key>" \ --env OECD_API_KEY="<your_oecd_api_key>" \ --env CENSUS_API_KEY="<your_census_api_key>" \ --env NASDAQ_API_KEY="<your_nasdaq_api_key>" \ --env WORLD_BANK_API_KEY="<your_world_bank_api_key>" \ --env ALPHA_VANTAGE_API_KEY="<your_alpha_vantage_api_key>"
How to use
The TAM MCP Server provides a comprehensive suite of market research capabilities through 28 MCP tools, 15 business prompts, and data source integrations from Alpha Vantage, BLS, Census, FRED, IMF, Nasdaq Data Link, OECD, and World Bank. It supports multiple transports (HTTP/STDIO/SSE) and offers smart defaults so you can begin analysis without extensive parameter setup. To use HTTP transport, connect via the tam endpoint using the provided start:http script and issue tool calls in MCP-compatible JSON. The server exposes a catalog of tools for direct data access, basic and advanced market analysis, and business intelligence prompts, enabling you to perform tasks such as TAM/SAM calculations, market sizing, industry analysis, and investment pitch templates. For STDIO or SSE workflows, you can route requests through the corresponding MCP transport, enabling scripting or streaming capabilities. The included prompts help with startup funding pitches, private equity analysis, corporate strategy, crisis and regulatory impact assessments, and ESG evaluations. You can also rely on the smart defaults to see example results instantly, such as a default TAM calculation for technology in North America or a company overview for Apple (AAPL).
How to install
Prerequisites:
- Node.js 20.x or later
- npm (or yarn)
- Optional: API keys for data sources (only needed for data integration)
Quick setup
-
Clone the repository and install dependencies git clone https://github.com/gvaibhav/TAM-MCP-Server.git cd TAM-MCP-Server npm install
-
Configure environment cp .env.example .env
Edit .env with your API keys and any required settings
-
Build and run HTTP transport (recommended) npm run build npm run start:http
Alternative development setup
- Start with STDIO transport: npm run start:stdio
Docker deployment (pre-built image)
- Build image 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
Additional notes
Tips and notes:
- If you plan to run in production, ensure API keys for external data sources are set in the environment (.env) or via the container environment variables.
- The server supports multiple transports (HTTP, STDIO, SSE). Use HTTP for Claude Desktop integration, or STDIO for scripting environments.
- The MCP Integration examples show how to configure the tam server in a global MCP config, including the cwd and the command/args required to start the server.
- For best performance, configure caching and verify data source access in your environment. Some sources may require additional permissions or rate-limited access.
- The 28 tools are organized into three tiers (Tier 1: Direct Data Access, Tier 2: Basic Market Tools, Tier 3: Business Analysis Tools). Familiarize yourself with the tool catalog to plan your workflows.
- If you encounter port or binding issues, confirm that the target port (default 3000 for HTTP) is open and not used by another process.
- Use the smart defaults to demonstrate capabilities in demos or onboarding environments without providing explicit parameters.
Related MCP Servers
MCP-Defender
Desktop app that automatically scans and blocks malicious MCP traffic in AI apps like Cursor, Claude, VS Code and Windsurf.
grok-faf
First MCP server for Grok | FAST⚡️AF • URL-based AI context • Vercel-deployed
mcp-turso
MCP server for interacting with Turso-hosted LibSQL databases
mcpman
The package manager for MCP servers — install, manage & monitor across Claude Desktop, Cursor, VS Code, Windsurf
claude-code-memory
A Claude Code plugin that gives Claude fully automatic, per-project cognitive memory with hybrid search, session lifecycle hooks, and local embeddings.
cloudflare -template
Reusable template for creating serverless Model Context Protocol (MCP) servers with provider plugin system. Deploy to Cloudflare Workers, Vercel, or any edge runtime.