Logotipo de PitchLense

PitchLense

Comunidad
connectaman

A comprehensive Model Context Protocol (MCP) package for analyzing startup investment risks using AI-powered assessment across multiple risk categories. Built with FastMCP and LLM.

Editorconnectaman
RepositorioPitchlense-mcp
IdiomaPython
Forks
3
Estrellas
6
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    PitchLense ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    6 estrellas y 3 forks en el repositorio enlazado.

PitchLense MCP - Professional Startup Risk Analysis Package

Python Version Python docs License: MIT PyPI Version Build Status

🏆 WINNER !!! of Google Cloud Gen AI Exchange Hackathon under the problem statement “AI Analyst for Startup Evaluation.” 🏆 Competing among 278,000+ participants and 180,000+ teams nationwide

A comprehensive Model Context Protocol (MCP) package for analyzing startup investment risks using AI-powered assessment across multiple risk categories. Built with FastMCP and Google Gemini AI.

PitchLense is a comprehensive AI-powered startup analysis platform that provides detailed risk assessment and growth potential evaluation for early-stage ventures. The platform analyzes multiple dimensions of startup risk and provides actionable insights for investors, founders, and stakeholders.

🔗 Quick Links

YouTube Tutorial AppWebsite GitHub Repository MCP Repository PyPI Package Documentation

📖 How to Use PitchLense

Watch our comprehensive tutorial video to learn how to use PitchLense effectively:

How to use PitchLense

Click the image above to watch the tutorial on YouTube

🚀 Features

Individual Risk Analysis Tools

  • Market Risk Analyzer - TAM, growth rate, competition, differentiation
  • Product Risk Analyzer - Development stage, market fit, technical feasibility, IP protection
  • Team Risk Analyzer - Leadership depth, founder stability, skill gaps, credibility
  • Financial Risk Analyzer - Metrics consistency, burn rate, projections, CAC/LTV
  • Customer Risk Analyzer - Traction levels, churn rate, retention, customer concentration
  • Operational Risk Analyzer - Supply chain, GTM strategy, efficiency, execution
  • Competitive Risk Analyzer - Incumbent strength, entry barriers, defensibility
  • Legal Risk Analyzer - Regulatory environment, compliance, legal disputes
  • Exit Risk Analyzer - Exit pathways, sector activity, late-stage appeal

Comprehensive Analysis Tools & Data Sources

  • Comprehensive Risk Scanner - Full analysis across all risk categories
  • Quick Risk Assessment - Fast assessment of critical risk areas
  • Peer Benchmarking - Compare metrics against sector/stage peers
  • SerpAPI Google News Tool - Fetches first-page Google News with URLs and thumbnails
  • Perplexity Search Tool - Answers with cited sources and URLs

📊 Risk Categories Covered

CategoryKey risks
MarketSmall/overstated TAM; weak growth; crowded space; limited differentiation; niche dependence
ProductEarly stage; unclear PMF; technical uncertainty; weak IP; poor scalability
Team/FounderSingle-founder risk; churn; skill gaps; credibility; misaligned incentives
FinancialInconsistent metrics; high burn/short runway; optimistic projections; unfavorable CAC/LTV; low margins
Customer & TractionLow traction; high churn; low retention; no marquee customers; concentration risk
OperationalFragile supply chain; unclear GTM; operational inefficiency; poor execution
CompetitiveStrong incumbents; low entry barriers; weak defensibility; saturation
Legal & RegulatoryGrey/untested areas; compliance gaps; disputes; IP risks
ExitUnclear pathways; low sector exit activity; weak late‑stage appeal

🛠️ Installation

From PyPI (Recommended)

bash
pip install pitchlense-mcp

From Source

bash
git clone https://github.com/pitchlense/pitchlense-mcp.git
cd pitchlense-mcp
pip install -e .

Development Installation

bash
git clone https://github.com/pitchlense/pitchlense-mcp.git
cd pitchlense-mcp
pip install -e ".[dev]"

🔑 Setup

1. Get Gemini API Key

  1. Visit Google AI Studio
  2. Create a new API key
  3. Copy the API key

2. Create .env

bash
cp .env.template .env
# edit .env and fill in keys

Supported variables:

GEMINI_API_KEY=
SERPAPI_API_KEY=
PERPLEXITY_API_KEY=

🚀 Usage

Command Line Interface

Run Comprehensive Analysis

bash
# Create sample data
pitchlense-mcp sample --output my_startup.json

# Run comprehensive analysis
pitchlense-mcp analyze --input my_startup.json --output results.json

Run Quick Assessment

bash
pitchlense-mcp quick --input my_startup.json --output quick_results.json

Start MCP Server

bash
pitchlense-mcp server

Python API

Basic Usage (single text input)

python
from pitchlense_mcp import ComprehensiveRiskScanner

# Initialize scanner (reads GEMINI_API_KEY from env if not provided)
scanner = ComprehensiveRiskScanner()

# Provide all startup info as one organized text string
startup_info = """
Name: TechFlow Solutions
Industry: SaaS/Productivity Software
Stage: Series A

Business Model:
AI-powered workflow automation for SMBs; subscription pricing.

Financials:
MRR: $45k; Burn: $35k; Runway: 8 months; LTV/CAC: 13.3

Traction:
250 customers; 1,200 MAU; Churn: 5% monthly; NRR: 110%

Team:
CEO: Sarah Chen; CTO: Michael Rodriguez; Team size: 12

Market & Competition:
TAM: $12B; Competitors: Zapier, Power Automate; Growth: 15% YoY
"""

# Run comprehensive analysis
results = scanner.comprehensive_startup_risk_analysis(startup_info)

print(f"Overall Risk Level: {results['overall_risk_level']}")
print(f"Overall Risk Score: {results['overall_score']}/10")
print(f"Investment Recommendation: {results['investment_recommendation']}")

Individual Risk Analysis (text input)

python
from pitchlense_mcp import MarketRiskAnalyzer, GeminiLLM

# Initialize components
llm_client = GeminiLLM(api_key="your_api_key")
market_analyzer = MarketRiskAnalyzer(llm_client)

# Analyze market risks
market_results = market_analyzer.analyze(startup_info)
print(f"Market Risk Level: {market_results['overall_risk_level']}")

MCP Server Integration

The package provides a complete MCP server that can be integrated with MCP-compatible clients:

python
from pitchlense_mcp import ComprehensiveRiskScanner

# Start MCP server
scanner = ComprehensiveRiskScanner()
scanner.run()

📋 Input Data Format

The primary input is a single organized text string containing all startup information (details, metrics, traction, news, competitive landscape, etc.). This is the format used by all analyzers and MCP tools.

Example text input:

Name: AcmeAI
Industry: Fintech (Lending)
Stage: Seed

Summary:
Building AI-driven credit risk models for SMB lending; initial pilots with 5 lenders.

Financials:
MRR: $12k; Burn: $60k; Runway: 10 months; Gross Margin: 78%

Traction:
200 paying SMBs; 30% MoM growth; Churn: 3% monthly; CAC: $220; LTV: $2,100

Team:
Founders: Jane Doe (ex-Square), John Lee (ex-Stripe); Team size: 9

Market & Competition:
TAM: $25B; Competitors: Blend, Upstart; Advantage: faster underwriting via proprietary data partnerships

Tip: See examples/text_input_example.py for a complete end-to-end script and JSON export of results.

📊 Output Format

All tools return structured JSON responses with:

json
{
    "startup_name": "Startup Name",
    "overall_risk_level": "low|medium|high|critical",
    "overall_score": 1-10,
    "risk_categories": [
        {
            "category_name": "Risk Category",
            "overall_risk_level": "low|medium|high|critical",
            "category_score": 1-10,
            "indicators": [
                {
                    "indicator": "Specific risk factor",
                    "risk_level": "low|medium|high|critical",
                    "score": 1-10,
                    "description": "Detailed risk description",
                    "recommendation": "Mitigation action"
                }
            ],
            "summary": "Category summary"
        }
    ],
    "key_concerns": ["Top 5 concerns"],
    "investment_recommendation": "Investment advice",
    "confidence_score": 0.0-1.0,
    "analysis_metadata": {
        "total_categories_analyzed": 9,
        "successful_analyses": 9,
        "analysis_timestamp": "2024-01-01T00:00:00Z"
    }
}

🎯 Use Cases

  • Investor Due Diligence - Comprehensive risk assessment for investment decisions
  • Startup Self-Assessment - Identify and mitigate key risk areas
  • Portfolio Risk Management - Assess risk across startup portfolio
  • Accelerator/Incubator Screening - Evaluate startup applications
  • M&A Risk Analysis - Assess acquisition targets
  • Research & Analysis - Academic and industry research on startup risks

🏗️ Architecture

Package Structure

pitchlense-mcp/
├── pitchlense_mcp/
│   ├── __init__.py
│   ├── cli.py                 # Command-line interface
│   ├── core/                  # Core functionality
│   │   ├── __init__.py
│   │   ├── base.py           # Base classes
│   │   ├── gemini_client.py  # Gemini AI integration
│   │   └── comprehensive_scanner.py
│   ├── models/               # Data models
│   │   ├── __init__.py
│   │   └── risk_models.py
│   ├── analyzers/            # Individual risk analyzers
│   │   ├── __init__.py
│   │   ├── market_risk.py
│   │   ├── product_risk.py
│   │   ├── team_risk.py
│   │   ├── financial_risk.py
│   │   ├── customer_risk.py
│   │   ├── operational_risk.py
│   │   ├── competitive_risk.py
│   │   ├── legal_risk.py
│   │   └── exit_risk.py
│   └── utils/                # Utility functions
├── tests/                    # Test suite
├── docs/                     # Documentation
├── examples/                 # Example usage
├── setup.py
├── pyproject.toml
├── requirements.txt
└── README.md

Key Components

  1. Base Classes (core/base.py)

    • BaseLLM - Abstract base for LLM integrations
    • BaseRiskAnalyzer - Base class for all risk analyzers
    • BaseMCPTool - Base class for MCP tools
  2. Gemini Integration (core/gemini_client.py)

    • GeminiLLM - Main LLM client
    • GeminiTextGenerator - Text generation
    • GeminiImageAnalyzer - Image analysis
    • GeminiVideoAnalyzer - Video analysis
    • GeminiAudioAnalyzer - Audio analysis
    • GeminiDocumentAnalyzer - Document analysis
  3. Risk Analyzers (analyzers/)

    • Individual analyzers for each risk category
    • Consistent interface and output format
    • Extensible architecture
  4. Models (models/risk_models.py)

    • Pydantic models for type safety
    • Structured data validation
    • Clear data contracts

🔧 Development

Setup Development Environment

bash
git clone https://github.com/pitchlense/pitchlense-mcp.git
cd pitchlense-mcp
pip install -e ".[dev]"
pre-commit install

Run Tests

bash
# Create and activate a virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate

# Install dev extras (pytest, pytest-cov, linters)
pip install -e ".[dev]"

# Run tests with coverage and avoid global plugin conflicts
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -q -p pytest_cov

Notes:

  • Coverage reports are written to htmlcov/index.html and coverage.xml.
  • If you see errors about unknown --cov options, ensure you passed -p pytest_cov when PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 is set.

Example Scripts

bash
python examples/basic_usage.py
python examples/text_input_example.py

Code Formatting

bash
black pitchlense_mcp/
flake8 pitchlense_mcp/
mypy pitchlense_mcp/

Build Package

bash
python -m build

📝 Notes

  • All risk scores are on a 1-10 scale (1 = lowest risk, 10 = highest risk)
  • Risk levels: low (1-3), medium (4-6), high (7-8), critical (9-10)
  • Individual tools can be used independently or combined for comprehensive analysis
  • The system handles API failures gracefully with fallback responses
  • All tables and structured data are returned in JSON format
  • Professional package architecture with proper separation of concerns

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

🙏 Acknowledgments

  • Google Gemini AI for providing the underlying AI capabilities
  • FastMCP for the Model Context Protocol implementation
  • The open-source community for inspiration and tools

PitchLense MCP - Making startup risk analysis accessible, comprehensive, and AI-powered.

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "pitchlense-mcp": {
      "command": "uvx",
      "args": [
        "pitchlense-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "",
        "SERPAPI_API_KEY": "",
        "PERPLEXITY_API_KEY": ""
      }
    }
  }
}

Usa el MCP de PitchLense con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado PitchLense, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade PitchLense como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de PitchLense.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "pitchlense": {
      "command": "npx",
      "args": [
        "-y",
        "pitchlense-mcp"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de PitchLense y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de PitchLense.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar PitchLense para ayudarme con esta tarea?
PitchLense
Claro. Lo he leído.
Esto he encontrado usando PitchLense.

Preguntas frecuentes

¿Para qué sirve el servidor MCP PitchLense?

PitchLense es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP PitchLense con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar PitchLense con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de PitchLense con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con PitchLense conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP PitchLense a TypingMind?

PitchLense funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP PitchLense en TypingMind?

PitchLense ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP PitchLense?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si PitchLense requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇