Policysg

by ey023

291 downloads
Not rated
GitHub

About

AI-powered Singapore government policy analysis tool using real-time data integration. Analyzes HDB housing, CPF retirement, Smart Nation initiatives, and healthcare policies with sophisticated scenario comparison and optimization recommendations.

Details

Author
ey023
Downloads
291
Categories
Other, AI

- Live integration with Singapore government open data (data.gov.sg)
- No API keys needed for public datasets
- Real-time HDB resale prices and population statistics
- Monte Carlo simulation for policy outcome projections
- Multi-dimensional policy comparison framework
- Production-ready MCP compliance with TypeScript and caching

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Policysg
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, run npm install, build with npm run build, and start with npm start. The server implements the full MCP protocol and exposes tools like analyze_hdb_housing, calculate_cpf_retirement, and compare_policy_scenarios that can be invoked directly by MCP clients.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "policysg": {
            "policysg": {
                "command": "node",
                "args": [
                    "dist/index.js"
                ],
                "cwd": "/path/to/PolicySG",
                "env": {
                    "GITHUB_PERSONAL_ACCESS_TOKEN": "<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>"
                }
            }
        }
    }
}

McpServers

{
    "policysg": {
        "command": "node",
        "args": [
            "dist/index.js"
        ],
        "cwd": "/path/to/PolicySG",
        "env": {
            "GITHUB_PERSONAL_ACCESS_TOKEN": "<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>"
        }
    }
}

PolicySG - Singapore Policy Analysis MCP Server 🇸🇬

The first MCP server specifically designed for Singapore government policy analysis

🎯 What PolicySG Does

PolicySG enables AI assistants to analyze Singapore government policies with real data:

- 🏠 HDB Housing Analysis: Real resale trends, affordability calculations, ethnic integration impacts
- 💰 CPF Retirement Planning: Comprehensive adequacy projections, contribution optimization
- 🏛️ Smart Nation Tracking: Digital government progress, citizen adoption metrics, ROI analysis
- 🏥 Healthcare Policy Simulation: Medisave usage modeling, subsidy impact analysis
- 🔬 Multi-Policy Comparison: Advanced scenario comparison with optimization recommendations

🚀 Key Features

Real Singapore Government Data

- Live integration with data.gov.sg APIs - No API keys required - uses public open data - Real-time HDB resale prices and population statistics - Comprehensive policy template library

Advanced AI Analysis

- Monte Carlo simulation for policy outcomes - Multi-dimensional policy comparison framework - Singapore-specific constraints and opportunities analysis - Natural language policy explanations and recommendations

Production-Ready Architecture

- Full MCP protocol compliance (tools, resources, prompts, sampling) - TypeScript implementation with comprehensive error handling - Intelligent caching system with data versioning - Real-time data subscriptions and updates - Enterprise-grade monitoring and health checks

🔧 Available MCP Tools

analyze_hdb_housing

Comprehensive HDB housing market analysis with real-time Singapore government data - Analyzes resale trends, affordability, ethnic integration impacts - Uses live data.gov.sg HDB transaction records - Includes government grants and policy considerations

calculate_cpf_retirement

Advanced CPF retirement adequacy calculator with 2024 Singapore parameters - Projects retirement balances using official contribution rates - Analyzes adequacy against Basic Retirement Sum - Provides personalized optimization recommendations

track_smart_nation

Singapore Smart Nation progress tracker with comprehensive metrics - Monitors digital government initiatives and adoption rates - International benchmarking against other smart cities - ROI analysis for digital transformation investments

compare_policy_scenarios

Multi-policy scenario comparison engine with Singapore evaluation framework - Compares policies across cost, effectiveness, feasibility, equity dimensions - Singapore-specific constraints and opportunity analysis - Generates optimization recommendations and implementation roadmaps

system_health_check

Comprehensive system monitoring with data quality assessment - Real-time API connectivity testing - Performance metrics and cache status - Singapore government data freshness indicators

🇸🇬 Singapore Policy Expertise

Deep Local Context

- Multi-racial society considerations (ethnic integration quotas) - Land scarcity constraints and optimization strategies - Trade-dependent economy vulnerability analysis - Aging population demographic transition planning - Government reserves and fiscal sustainability assessment

Policy Areas Covered

- Housing: HDB dominance (80%+ residents), resale market dynamics - Retirement: CPF three-pillar system, adequacy challenges - Digital Government: Smart Nation leadership, citizen adoption - Healthcare: 3M system (Medisave, Medishield, Medifund) - Economic: Competitiveness, innovation, regional positioning

🏆 Innovation Highlights

First-of-Its-Kind

- Only MCP server specifically for government policy analysis - Real-world utility proven through Singapore data integration - Production-ready architecture suitable for government deployment

Technical Excellence

- Complete MCP protocol implementation showcasing all features - Advanced caching and performance optimization - Comprehensive testing and documentation - Singapore timezone and multilingual considerations

Practical Impact

- Usable by Singapore policymakers for evidence-based decisions - Framework expandable to other countries and policy domains - Template for specialized MCP servers in government sector

🚀 Quick Start

Installation

```bash git clone https://github.com/yourusername/policysg-mcp-server cd policysg-mcp-server npm install npm run build npm start
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.