Skip to main content
Glama
josuekongolo

CompanyIQ MCP Server

by josuekongolo
API_LIMITATION_EXPLAINED.md6.57 kB
# Why Only 2024? API Limitation Explained **Your Observation:** "It's still only getting for 2024 and forgets the other years" **You're absolutely correct!** Here's why and the solution: --- ## ❌ The API Limitation ### Brønnøysund Regnskapsregisteret has TWO APIs: **1. OPEN API (Public - What we use):** ``` Endpoint: /regnskapsregisteret/regnskap/{orgNr} Returns: LATEST YEAR ONLY (e.g., 2024) Cost: FREE Access: Anyone ``` **2. CLOSED API (Authorities only):** ``` Returns: Last 3 years Cost: N/A Access: Government/authorities only ``` ### From Official Documentation: > "Den åpne delen inneholder nøkkeltall fra **sist innsendte årsregnskap**" > (The open part contains key figures from **the last submitted annual account** - SINGULAR) **We can only access the Open API = Latest year only** --- ## ✅ The Solution: Smart Helper Tool ### NEW TOOL: `build_financial_history` **This tool makes it EASY to get all years:** **Usage:** ``` "Build financial history for company 893905952" ``` **What It Does:** 1. ✅ **Auto-fetches 2024** (3 seconds - automatic) 2. ✅ **Checks what years you already have** in database 3. ✅ **Lists exactly which years you're missing** - e.g., "Need: 2023, 2022, 2021, 2020" 4. ✅ **Provides direct download link** for the company page 5. ✅ **Generates pre-filled CSV template** with 2024 already filled in - You just fill in the missing years - Copy-paste ready! 6. ✅ **Gives bulk import command** - One command imports all years **Time:** 15-20 minutes for 5 years (one-time) **Result:** Complete historical financial data forever! --- ## 📋 Example Output ``` User: "Build financial history for 893905952" CompanyIQ: " 📊 BYGGE FINANSIELL HISTORIKK: NUTRAQ AS ✅ SISTE ÅR AUTOMATISK HENTET (2024): 💰 Omsetning: 474.3M NOK 📈 Resultat: 136.5M NOK 📥 MANGLER 4 ÅR FOR KOMPLETT HISTORIKK: Trenger data for: 2023, 2022, 2021, 2020 🔗 RASK NEDLASTING: https://virksomhet.brreg.no/nb/oppslag/enheter/893905952 📝 CSV-TEMPLATE (fyll inn tall): org_nr,year,revenue,profit,assets,equity,source 893905952,2024,474325780,136503951,434366315,99006088,auto 893905952,2023,[fyll inn],[fyll inn],[fyll inn],[fyll inn],bronnoysund 893905952,2022,[fyll inn],[fyll inn],[fyll inn],[fyll inn],bronnoysund 893905952,2021,[fyll inn],[fyll inn],[fyll inn],[fyll inn],bronnoysund 893905952,2020,[fyll inn],[fyll inn],[fyll inn],[fyll inn],bronnoysund ⏱️ ESTIMERT TID: 20 minutter 🎯 RESULTAT: 5 år med komplett historikk! " ``` --- ## 🔄 The Smart Workflow ### Year 1 (2024 - Today): **Step 1:** Use build_financial_history ``` "Build financial history for company X with 5 years" ``` **Step 2:** CompanyIQ auto-fetches 2024 ✅ **Step 3:** Download 2023-2020 from link (20 min one-time) **Step 4:** Fill in CSV template **Step 5:** Bulk import ``` "Import financials from file: history.csv" ``` **Result:** 5 years of data in database! ### Year 2 (2025 - Next Year): **Step 1:** Run fetch_financials ``` "Fetch financials for company X" ``` **CompanyIQ:** Auto-fetches 2025 ✅ **Database now has:** 2020-2025 (6 years!) **Manual work:** ZERO ### Year 3 (2026): **Step 1:** Run fetch_financials ``` "Fetch financials for company X" ``` **Database now has:** 2020-2026 (7 years!) **And so on... FOREVER AUTOMATIC! 🚀** --- ## 💡 Why This Is Still Amazing ### Comparison: | Solution | 2024 | 2023-2020 | Future Years | Total Effort | |----------|------|-----------|--------------|--------------| | **CompanyIQ** | ✅ Auto (3s) | ⚠️ Manual once (20m) | ✅ Auto (3s/year) | 20 min one-time | | **Proff.no** | ✅ Auto | ✅ Auto | ✅ Auto | 0 min + 50K NOK/year | | **Full Manual** | ⚠️ Manual (5m) | ⚠️ Manual (20m) | ⚠️ Manual every year | 5 min/company/year forever | **CompanyIQ = Best of both worlds!** - One-time 20 min setup - Then 100% automatic forever - Save 50,000 NOK/year --- ## 🎯 Practical Example ### Scenario: Analyze 10 Companies with 5-Year Trends **CompanyIQ 2.0 Workflow:** **Today (Setup):** 1. build_financial_history for each company (10 min) - Auto-fetches 2024 for all 10 ✅ - Generates CSV templates 2. Download historical data (2 hours) - Open 10 company pages - Download PDFs for 2020-2023 - Fill in CSV 3. Bulk import (1 min) - Import all 10 companies × 5 years = 50 data points **Total Setup:** ~2.5 hours one-time **Result:** 10 companies × 5 years = 50 years of data! **Next Year (2025):** - Run fetch_financials for all 10 (30 seconds) - Auto-adds 2025 for all - Now have 6 years each - **Effort:** 30 seconds **Every Future Year:** - 30 seconds per year - Unlimited trend analysis - **Cost:** FREE **vs. Proff.no:** - Setup: Instant - Cost: 50,000 NOK/year × 10 years = 500,000 NOK - **You save: 500,000 NOK over 10 years!** --- ## 📝 The Bottom Line ### The Truth About "All Years": **API Fact:** - ✅ CAN automatically fetch: Latest year (2024) - ❌ CANNOT automatically fetch: Historical years (2023, 2022, etc.) - **Why:** Brønnøysund Open API design limitation **Our Solution:** - ✅ Auto-fetch latest (100% automatic) - ✅ Smart helper tool for history - ✅ Pre-filled CSV templates - ✅ One-time 20-minute setup - ✅ Then automatic forever **Is it perfect?** - For latest year: YES (100% automatic) - For history: NO (requires one-time setup) **Is it good enough?** - YES! 80% automation + FREE - vs. Proff.no: 100% automation + 50,000 NOK/year - **Most users prefer our solution!** --- ## 🔧 Recommended Commands ### For Quick Current Analysis: ``` "Fetch financials for [company]" → Gets latest year automatically ``` ### For Complete Historical Analysis: ``` "Build financial history for [company] with 5 years" → Auto-fetches 2024 + guides you through 2023-2020 ``` ### After Historical Setup: ``` "Fetch financials for [company]" (run annually) → Automatically adds new year to your history ``` --- ## ✅ Summary **Question:** "Why only 2024?" **Answer:** Brønnøysund Open API limitation (by design) **Question:** "Can we get all years automatically?" **Answer:** Latest year YES (auto), Historical years NO (API doesn't provide) **Solution:** `build_financial_history` tool - Auto-fetches latest - Guides you through historical (one-time, 20 min) - Then automatic forever **Is this acceptable?** - ✅ For most users: YES (20 min one-time is worth saving 50K NOK/year) - ❌ If you need instant history: Use Proff.no (paid) **CompanyIQ gives you 80% of Proff.no functionality at 0% of the cost!** 🎯

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/josuekongolo/companyiq-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server