# Claude Code & Claude Desktop MCP Skill — EcoLab & EcoData (`TNSAI Ecosystem`)

> **Official Ecosystem URLs:**
> - **EcoLab:** https://ecolab.io.vn
> - **EcoData MCP:** https://ecodata.io.vn/mcp
> - **TNSAI Portal:** https://www.tnsai.vn

## 1. Claude Desktop / Claude Code MCP Configuration
Add to `claude_desktop_config.json` or `.mcp.json`:
```json
{
  "mcpServers": {
    "ecodata": {
      "url": "https://ecodata.io.vn/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_ECODATA_MCP_KEY",
        "X-EcoLab-Execution-Mode": "host_llm"
      }
    }
  }
}
```

## 1B. Host-LLM-First Reasoning & Safe Tool Execution
- When connected via MCP or AI Agents (Gemini, AntiGravity, Claude Code, Codex, Cursor), both User and Admin prioritize the **Host LLM (e.g., Gemini 4 Argon + Deep Thinking)** to reason, synthesize, and write complete reports from the structured empirical data and regression tables returned by EcoData MCP without calling server-side external LLM Provider API keys (which are only used directly on the EcoLab Web App `https://ecolab.io.vn`).
- All MCP tool inputs enforce strict formula/identifier allowlists (`^[A-Za-z_][A-Za-z0-9_.]*$`) and block Prompt Injection / Code Execution Injection with `SECURITY_VIOLATION`.

## 2. Quantitative Economics Research Workflow
1. **Ideation & Theoretical Grounding (`https://ecolab.io.vn`)**:
   - Define the dependent variable, key explanatory variables, control variables, and testable hypotheses grounded in economic theory.
2. **Multi-Source Literature Review (6 Global Databases)**:
   - Use personal API credentials on EcoLab for **Semantic Scholar**, **OpenAlex**, **CrossRef**, **CORE**, **DOAJ**, and **ArXiv** to build a traceable Research Gap Matrix with verified DOIs.
3. **Empirical Dataset Construction via EcoData MCP**:
   - Retrieve official Vietnam GSO, VHLSS, Customs, Ministry of Finance, and international World Bank / IMF / FRED / OECD / ADB indicators.
4. **Econometric Estimation & Diagnostics (105+ Models)**:
   - Execute OLS, Fixed Effects, Random Effects, FGLS, Difference/System GMM, ARDL, VECM, DID, IV/2SLS, Logit/Probit/Tobit, or Spatial Econometrics (`SAR`, `SEM`, `SDM`).
5. **Reproducible Manuscript Generation**:
   - Draft academic reports strictly locked to executed model outputs and export standalone Stata, R, and Python replication scripts.
