MCPInstall
sim-mcp-token logo

sim-mcp-token

by waifuai 3 stars waifuai/sim-mcp-token

Agent-based economic simulation exploring resource allocation, pricing, and wealth distribution. 💰 Features autonomous agents, resource dynamics, and economic policies such as taxes. 💸 Includes parameter experimentation (price elasticity, regeneration rates, taxes, expenses) and analysis (Gini coefficient, bankruptcies). 📊

READMEmain

Agent-Based Economic Simulation

A dynamic agent-based simulation modeling economic interactions between autonomous agents and limited resources. The system explores resource allocation strategies, price dynamics, and wealth distribution under various economic parameters.

Key Features

  • Autonomous Agents:
    50 agents with evolving resource needs, income/expense dynamics, and bankruptcy rules

  • Resource Ecosystem:
    3 resources with price elasticity, regeneration patterns, and capacity adaptation

  • Economic Mechanics:

    • Dynamic pricing based on supply/demand
    • Tax system with wealth redistribution
    • Bankruptcy detection and agent removal
    • Resource capacity adaptation to economic output
  • Analysis Tools:

    • Gini coefficient calculation
    • Parameter experimentation framework
    • Key metric tracking (bankruptcies, balances, prices)

Getting Started

Requirements

  • Python 3.7+
  • NumPy

Basic Usage

Run full experimentation suite:

python main.py

Code Structure

FilePurpose
constants.pyCentral configuration of simulation parameters
models.pyAgent/Resource class definitions with core behaviors
simulation.pyMain simulation loop and step-by-step execution logic
helpers.pyEconomic calculations and system operations
experimentation.pyParameter space exploration and result analysis
main.pyEntry point for running experiments and viewing results

Core Parameters (constants.py)

ParameterDescriptionDefault
NUM_AGENTSInitial population size50
SIMULATION_STEPSDuration of each simulation run100
TAX_RATEWealth redistribution percentage2%
PRICE_ELASTICITYDemand sensitivity to price changes0.05
RESOURCE_REGEN_RATEBase resource regeneration rate1%
BANKRUPTCY_THRESHOLDBalance level for agent removal-50
AGENT_INCOME_CEILINGMaximum possible agent income1.0

Experimentation Insights

The system tests four key parameters across ranges:

  1. Price Elasticity (0.01-0.1)
  2. Resource Regeneration (0.005-0.02)
  3. Tax Rates (0-5%)
  4. Expense Rates (10-50%)

Sample findings:

Tax rate that minimizes bankruptcies: 0.0278
Regen rate that maximizes average final balance: 0.0189

Key Metrics Tracked

  • Average agent balance
  • Wealth inequality (Gini coefficient)
  • Bankruptcy count
  • Resource price stability
  • System-wide economic output

Simulation Flow

  1. Price updates based on resource utilization
  2. Resource allocation through agent bidding
  3. Income distribution and expense deduction
  4. Tax collection/redistribution
  5. Bankruptcy checks and agent removal
  6. Resource regeneration and capacity adjustment
  7. Agent behavior adaptation

Analysis Capabilities

  • Parameter sensitivity testing
  • Optimal policy identification
  • System stability evaluation
  • Emergent pattern detection
  • Equilibrium state analysis

More Research & Data MCP servers

Similar servers from the same category.

WeatherXM PRO

weatherxm

Integrates with WeatherXM PRO APIs to provide access to hyperlocal weather data, historical observations, and forecast performance metrics for location-specific analysis and planning.

APICLI+6

Gralio

tymonte

Access 3+ million SaaS reviews, detailed pricing data, alternatives, ratings, funding information, growth metrics, user sentiment analysis, and functional feature data for over 30,000 software products.

Research & Data

Integrates with professional cryptocurrency data APIs from DefiLlama Pro, CoinGecko Pro, and Arkham Intelligence to provide real-time token prices, market data, blockchain analytics, and on-chain intelligence for crypto researchers and traders.

search

Enables semantic and keyword searches across Space Frontiers' library, telegram, and reddit databases through a FastAPI-based server with flexible authentication options.

databaseauthentication+1