invest-gate-ksa

invest-gate-ksa

Enables conversational querying of structured, source-linked datasets about investing in Saudi Arabia, including fees, sectors, and SEZs, through 8 MCP tools.

Category
访问服务器

README

License: MIT Languages Health Checks Datasets Fees Sources MCP Ready AI Ready Last Updated

Invest Gate KSA

Architecture

How a question becomes a verified answer

Architecture

The investor asks in Arabic or English → Claude Desktop routes through 8 MCP tools → the server queries 10 bilingual datasets → every response cites its official source with a verification status (✓ verified from .gov.sa / ⚠ draft from commercial source).

<p align="center"> <img src="assets/images/repo-cover.png" alt="Invest Gate KSA Cover" width="100%"> </p>

A bilingual, open-source knowledge infrastructure for understanding investment, company setup, licensing, and business operations in Saudi Arabia.


Disclaimer This repository contains general educational information only. It is not legal, financial, regulatory, or tax advice. Laws, fees, and procedures in Saudi Arabia change — always verify information directly with official government sources and consult qualified practitioners before making any decision.


The Problem

Saudi Arabia has opened significantly to foreign investment. But for an investor arriving from outside the Kingdom, the path is genuinely hard to navigate: information is scattered across a dozen government portals, often in Arabic only, frequently outdated on third-party sites, and rarely organized around the questions investors actually ask.

The result is that many foreign investors rely on expensive consultants for information that should be freely accessible — or worse, proceed on misinformation.


What This Is

Invest Gate KSA is a structured, community-maintained knowledge repository that organizes publicly available information about investing in Saudi Arabia into clear, source-linked, bilingual documentation — and exposes it through a working MCP server for conversational AI querying.

It is not a consultancy. It is not a legal service. It is a reference framework — designed to be accurate, traceable, and queryable.


Quick Start

Option A — Query the datasets directly (CLI)

# Clone
git clone https://github.com/Samix2026/invest-gate-ksa.git
cd invest-gate-ksa

# Install
pip3 install -r scripts/requirements.txt

# Query fee schedule
python3 scripts/query-dataset.py --dataset fees --lang en --list

# Query sectors (Arabic)
python3 scripts/query-dataset.py --dataset sectors --lang ar --list

# Query Special Economic Zones
python3 scripts/query-dataset.py --dataset sezs --lang en --list

# Search across all datasets
python3 scripts/query-dataset.py --dataset all --keyword "MISA" --lang en

Option B — Connect to Claude Desktop (MCP)

pip3 install -r mcp/requirements.txt

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "invest-gate-ksa": {
      "command": "python3",
      "args": ["/absolute/path/to/invest-gate-ksa/mcp/invest_gate_mcp.py"]
    }
  }
}

Restart Claude Desktop. Then ask:

  • "What are the steps to register a company in Saudi Arabia as a foreign investor?"
  • "ما رسوم التسجيل في وزارة الاستثمار؟"
  • "What are the tax obligations for a foreign company in Saudi Arabia?"

Option C — Use the data directly in your project

import json

with open('data/fees.en.json') as f:
    fees = json.load(f)

for entry in fees['data']:
    if entry.get('verification_status') == 'verified' and entry.get('amount_sar', 0) != 0:
        print(f"{entry['id']}: SAR {entry['amount_sar']} ({entry.get('frequency', '')})")

Example Output

Fee schedule query (--dataset fees --lang en --list):

fees  (en)  —  24 entries
────────────────────────────────────────────────────────────────────────────────
  ID                                NAME                          STATUS
────────────────────────────────────────────────────────────────────────────────
  misa_investment_registration_fee  Fee charged by the Ministry … verified
  misa_activity_amendment_fee       Fee charged by the Ministry … verified
  misa_ownership_amendment_fee      Fee charged by the Ministry … verified
  misa_annual_renewal_fee           Fee for the annual update of… verified
  misa_property_approval_fee        Fee charged by the Ministry … verified
  misa_registration_cancellation_fe Fee charged by the Ministry … verified
  commercial_registration_issuance_ Fee charged by the Ministry … verified
  branch_commercial_registration_fe Historical entry — Branch Co… verified
  chamber_of_commerce_fee           Annual mandatory Chamber of … verified
  gosi_employer_registration_fee    Fee, if any, charged by the … draft
  zatca_vat_registration_fee        Fee, if any, charged by the … draft
  cit_corporate_income_tax          Corporate Income Tax (CIT) c… verified
  zakat_saudi_gcc_shareholders      Zakat is an annual Islamic l… verified
  wht_withholding_tax               Withholding Tax (WHT) charge… verified
  municipal_license_riyadh_fee      Fee charged by the local mun… draft
  saudization_certificate_fee       Fee, if any, charged by the … draft
  rhq_license_year1_fee             Fee for the first year of a … draft
  rhq_license_annual_fee            Annual renewal fee for a Reg… draft
  entrepreneurial_license_fee_y1_3  Reduced MISA Entrepreneurial… verified
  entrepreneurial_license_fee_y4_5  MISA Entrepreneurial License… verified
  qiwa_employer_registration_fee    Fee for registering as an em… verified
  iqama_issuance_renewal_fee        Annual Iqama (residency perm… verified
  final_exit_visa_fee               Fee for issuing a final exit… verified
  exit_reentry_visa_extension_fee   Fee for extending an exit/re… verified
────────────────────────────────────────────────────────────────────────────────
  24 entry/entries

Sector query, Arabic (--dataset sectors --lang ar --list):

sectors  (ar)  —  16 entries
────────────────────────────────────────────────────────────────────────────────
  ID                                NAME                          STATUS
────────────────────────────────────────────────────────────────────────────────
  technology                        التقنية                       draft
  consulting                        الاستشارات والخدمات المهنية   draft
  ecommerce                         التجارة الإلكترونية           draft
  food_and_beverage                 الأغذية والمشروبات            draft
  real_estate                       العقارات                      draft
  education                         التعليم                       draft
  healthcare                        الرعاية الصحية                draft
  fintech                           التقنية المالية (فينتك)       draft
  manufacturing                     التصنيع                       draft
  industrial_services               الخدمات الصناعية              draft
  mining                            التعدين والموارد المعدنية     draft
  tourism_and_hospitality           السياحة والضيافة              draft
  media_and_content                 الإعلام والمحتوى              draft
  hajj_umrah_services               خدمات الحج والعمرة            draft
  entertainment_and_events          الترفيه والفعاليات            draft
────────────────────────────────────────────────────────────────────────────────
  16 entry/entries

SEZ query (--dataset sezs --lang en --list):

sezs  (en)  —  5 entries
────────────────────────────────────────────────────────────────────────────────
  ID                                NAME                          STATUS
────────────────────────────────────────────────────────────────────────────────
  kaec_sez                          King Abdullah Economic City … verified
  jazan_sez                         Jazan Special Economic Zone   verified
  ras_al_khair_sez                  Ras Al-Khair Special Economi… verified
  cloud_computing_sez               Cloud Computing Special Econ… verified
  silz                              Special Integrated Logistics… draft
────────────────────────────────────────────────────────────────────────────────
  5 entry/entries

Who This Is For

Audience How they use it
Foreign entrepreneurs and investors Understand the regulatory landscape before engaging advisors
Business setup consultants Reference and share structured process guides
Researchers and academics Source-linked overview of the Saudi investment framework
Developers Knowledge base for building investment-related tools and AI assistants
Translators and bilingual professionals Arabic-English alignment of business and regulatory terminology

Use Cases

For developers:

  • Build an investment guidance chatbot for Saudi Arabia
  • Power an AI agent with structured regulatory data
  • Integrate via MCP with Claude Desktop or any MCP-compatible client

For founders and investors:

  • Understand the full regulatory path before engaging consultants
  • Compare business structures (LLC vs Branch vs RHQ)
  • Verify fee estimates against official sources

For researchers:

  • Structured, bilingual, source-linked regulatory dataset
  • Tracks data gaps explicitly — 25 source gaps documented
  • Versioned via Git with full change history

For AI/LLM builders:

  • 10 JSON datasets with strict schema (Draft-07)
  • Bilingual EN/AR with ID parity enforcement
  • MCP server with 8 tools — plug into any MCP-compatible agent
  • System prompt included for out-of-the-box AI assistant deployment

What's Inside

Directory / File Contents
data/ 10 structured bilingual JSON datasets (EN + AR)
data/sectors 16 investment sectors with Vision 2030 alignment
data/sources 14 verified regulatory authority sources
data/source-gaps 24 tracked data gaps awaiting verification
data/fees 24 fee entries — verified entries cite official sources
data/timelines 10 processing time entries — verified against official publications
data/sezs 5 Special Economic Zones (KAEC, Jazan, Ras Al-Khair, Cloud, SILZ)
data/setup-flows 4 registration flows by scenario (consulting, e-commerce, manufacturing, fintech)
data/business-structures 4 entity types (LLC, JSC, Branch Office, Representative Office)
data/authority-relationships 12 regulatory authority relationship mappings
data/investment-licenses 5 registration and licensing concepts in setup sequence
schemas/ JSON Schema Draft-07 — strict typing, additionalProperties: false
docs/en/ English guides: registration, tax, SEZs, Vision 2030, structures
docs/ar/ Arabic mirrors (RTL) — full bilingual parity enforced
mcp/ FastMCP server — 8 query tools for Claude Desktop integration
.claude/commands/ 6 slash commands for daily repository operations
prompts/ AI system prompt (bilingual, citation rules, legal disclaimer)
scripts/ 184-check validation suite (JSON, schema, parity, cross-refs)
sources/ Citation registry — every claim source-linked
templates/ Investor checklists — planned
.github/workflows/ CI/CD — validation on every push and PR

Core Coverage

  • Full regulatory path: MISA → CR → Chamber of Commerce → ZATCA → GOSI → Qiwa → Muqeem
  • Registration types: Standard Investment Registration, RHQ, Entrepreneurial
  • Tax framework: CIT 20% (foreign), Zakat 2.5% (Saudi/GCC), VAT 15%, WHT 5–20%
  • Special Economic Zones: KAEC, Jazan, Ras Al-Khair, Cloud Computing, SILZ (5% CIT)
  • Vision 2030 sector alignment: 16 sectors with official targets and supervising entities
  • Fee schedules and processing timelines — verified against official sources
  • 2025 regulatory updates: new CR Law (April 2025), Investment Law (August 2024)

Project Status

Phase Progress Status Description
Phase 1 — Foundation ██████████ Complete Schemas, CI/CD, 184-check validation suite
Phase 2 — Knowledge Base ████████░░ Active 10 datasets, 5 verified core paths, SEZs, V2030
Phase 3 — AI Workflows ██████████ Complete System prompt, 8 MCP tools
Phase 4 — MCP Integration ██████████ Complete Claude Desktop ready (stdio)
Phase 5 — Product Layer ░░░░░░░░░░ Planned —

Verification status (2026-05-20):

  • ✅ Verified against official sources: MISA registration, CR (MoC), Chamber of Commerce, ZATCA (CIT + VAT + WHT), GOSI, Qiwa, Muqeem, SEZs (ECZA + Official Gazette Jan 2026), Vision 2030 KPIs
  • ⚠️ Draft — pending official confirmation: RHQ registration fees, SILZ tax details
  • 📋 Planned: economic-activities dataset, investor checklist templates

See roadmap.md for the full task breakdown.


MCP Server — Claude Desktop Integration

Connect Claude Desktop directly to this knowledge base for conversational querying.

Install:

pip3 install -r mcp/requirements.txt

Configure (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "invest-gate-ksa": {
      "command": "python3",
      "args": ["/absolute/path/to/invest-gate-ksa/mcp/invest_gate_mcp.py"]
    }
  }
}

Available tools: query_sectors · query_authorities · query_setup_flows · query_fees · query_timelines · query_structures · get_investor_path · search_knowledge_base

See mcp/README.md for full setup instructions.


Verification Methodology

Every data entry carries an explicit verification status: verified (confirmed from an official .gov.sa source or Official Gazette), draft (from credible sources but not officially confirmed), or placeholder (gap acknowledged, not yet researched). Unverified entries are never presented as fact — they carry a disclaimer and a verify_at link. See docs/en/source-verification.md for the full workflow.


Contributing

This project grows through the knowledge of people with direct, documented experience. We welcome contributions from consultants, lawyers, researchers, investors, and developers.

What we need most:

  • Verified fee amounts from official sources (especially RHQ, SILZ)
  • Economic activities dataset (MISA activity codes with foreign ownership eligibility)
  • Investor checklist templates (LLC, Branch, MISA documents)
  • Corrections to any outdated information

Every piece of content must cite an official source. See CONTRIBUTING.md for guidelines.


Run Health Checks

python3 scripts/check.py

Runs 184 checks: required files, JSON validity, schema validation, alias integrity, cross-reference integrity, bilingual parity. Exits 0 on full pass.


Browse the Docs


License

MIT License — free to use, adapt, and distribute with attribution.

The content (guides, data, templates) is educational, not advisory. See LICENSE for the full disclaimer.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选