
Israel Statistics (CBS)
Retrieves economic data from Israel's Central Bureau of Statistics API, including consumer price indices, housing market data, and inflation calculations.
Integrates with the Israeli Central Bureau of Statistics API to retrieve economic data including consumer price indices, housing market data, producer price indices, and inflation calculations with specialized handling for bi-monthly housing data and support for both JSON and XML response formats.
What it does
- Query consumer price indices and economic indicators
- Calculate inflation adjustments using price linkage tool
- Retrieve housing market data with bi-monthly updates
- Browse statistical topics and index categories
- Get producer price indices for various industries
- Filter data by time periods and chapters
Best for
About Israel Statistics (CBS)
Israel Statistics (CBS) is a community-built MCP server published by reuvenaor that provides AI assistants with tools and capabilities via the Model Context Protocol. Access economic and birth rate data in Israel with CBS API: consumer prices, housing, inflation. Supports JSON & XML for It is categorized under finance, analytics data. This server exposes 9 tools that AI clients can invoke during conversations and coding sessions.
How to install
You can install Israel Statistics (CBS) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Israel Statistics (CBS) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Tools (9)
Get index topics from Israel Statistics API
Get index data from Israel Statistics API
Get list of index chapters from Israel Statistics API
Get topics for a specific chapter from Israel Statistics API
Get index codes for a specific subject/topic from Israel Statistics API
Israel Statistics MCP Server
A Model Context Protocol (MCP) server that provides programmatic access to the Israeli Central Bureau of Statistics (CBS) price indices and economic data. Built with TypeScript, this server offers 8 comprehensive tools for retrieving, analyzing, and calculating Israeli economic statistics.
๐ณ Installation & Usage
Docker (Recommended)
// .mcp.json
{
"israel-statistics-mcp": {
"command": "docker",
"args": ["run", "--rm", "-i", "reuvenaor/israel-statistics-mcp:latest"]
}
}
NPX
// .mcp.json
{
"israel-statistics-mcp": {
"command": "npx",
"args": ["@reuvenorg/israel-statistics-mcp"]
}
}
Claude Desktop Integration
# Quick setup
claude mcp add --scope project israel-statistics-mcp npx @reuvennaor85/israel-statistics-mcp
๐ Features
๐ Comprehensive Economic Data Access
- Consumer Price Index (CPI) - General and detailed price indices
- Housing Market Index - Real estate prices with bi-monthly updates
- Producer Price Indices - Industrial, exports, and services
- Specialized Indices - Construction, agriculture, transportation, and more
- Price Linkage Calculator - Inflation adjustment calculations
๐ก๏ธ Enterprise-Grade Architecture
- Type-Safe Validation - Complete Zod schema validation for all inputs/outputs
- Rate Limiting - Built-in protection (5 concurrent operations max)
- Error Handling - Comprehensive CBS API error handling and retry logic
- Multi-Format Support - JSON and XML response parsing
- Housing Market Warnings - Automatic notifications for bi-monthly provisional data
๐ Advanced Data Processing
- XML/JSON Transformation - Seamless conversion from CBS API formats
- Statistical Calculations - Automatic averages, counts, and summaries
- Date Range Filtering - Flexible period selection (monthly/quarterly)
- Search & Discovery - Full-text search across indices and topics
- Pagination Support - Handle large datasets efficiently (up to 1000 items/page)
๐ Available MCP Tools
| Tool | Description | Key Parameters |
|---|---|---|
get_index_topics | Browse all available index categories and topics | period, searchText, lang |
get_catalog_chapters | Get all index chapters (CPI, Housing, etc.) | lang, pagesize |
get_chapter_topics | Get topics within a specific chapter | chapterId, lang |
get_subject_codes | Get index codes for a specific topic | subjectId, searchText |
get_index_data | Retrieve historical price data for an index | code, startPeriod, endPeriod |
get_index_calculator | Calculate inflation-adjusted values | indexCode, value, fromDate, toDate |
get_main_indices | Get current main economic indices | oldFormat, lang |
get_all_indices | Get comprehensive index data with filtering | chapter, oldFormat |
๐๏ธ Architecture
src/
โโโ index.ts # MCP server entry point with tool registration
โโโ mcp/
โ โโโ handlers/ # 8 MCP tool handlers
โ โ โโโ getIndexTopics.ts # Browse available indices
โ โ โโโ getCatalogChapters.ts # Get index chapters
โ โ โโโ getChapterTopics.ts # Topics by chapter
โ โ โโโ getSubjectCodes.ts # Index codes by topic
โ โ โโโ getIndexData.ts # Historical price data
โ โ โโโ getIndexCalculator.ts # Inflation calculator
โ โ โโโ getMainIndices.ts # Main indices (current + by period)
โ โ โโโ getAllIndices.ts # All indices with filtering
โ โโโ helpers/
โ โโโ fetcher.ts # Secure CBS API client with XML/JSON parsing
โ โโโ housingWarnings.ts # Housing market data warnings
โโโ schemas/ # Type-safe Zod validation schemas
โ โโโ request.schema.ts # Input validation schemas
โ โโโ response.schema.ts # Output validation schemas
โ โโโ base.schema.ts # Reusable object schemas
โ โโโ shared.schema.ts # Common enums and types
โโโ utils/
โโโ registry-security.ts # Security utilities
โโโ spinner.ts # MCP progress notifications
๐ Security Features
- Rate Limiting: Maximum 5 concurrent operations
- Input Validation: Comprehensive Zod schema validation
- URL Validation: Allowlist-based registry URL security
- Error Sanitization: Safe error message handling
- Timeout Protection: 30-second HTTP request timeouts
๐ Schema Architecture
๐ CBS API Coverage
The server implements complete coverage of the CBS Israel Statistics API:
Index Discovery Endpoints
GET /index/catalog/treeโget_index_topicsGET /index/catalog/catalogโget_catalog_chaptersGET /index/catalog/chapterโget_chapter_topicsGET /index/catalog/subjectโget_subject_codes
Data Retrieval Endpoints
GET /index/data/priceโget_index_dataGET /index/data/calculator/{id}โget_index_calculatorGET /index/data/price_selectedโget_main_indicesGET /index/data/price_selected_bโget_main_indices_by_periodGET /index/data/price_allโget_all_indices
Supported Index Categories
| Chapter | Description | Examples |
|---|---|---|
a | Consumer Price Index | Food, clothing, housing costs |
aa | Housing Market Index | Real estate prices (bi-monthly) |
b | Producer Price Index - Industrial | Manufacturing output prices |
ba | Producer Price Index - Exports | Export prices for industry |
bb | Producer Price Index - Services | Service industry prices |
c | Residential Building Input | Construction material costs |
ca | Commercial Building Input | Office building costs |
d | Road Construction Input | Infrastructure costs |
e | Agriculture Input | Agricultural input costs |
f | Bus Input | Public transportation costs |
fa | Public Minibus Input | Public transport vehicle costs |
โ ๏ธ Housing Price Index Special Considerations
The server automatically detects and warns about Housing Price Index data:
- Bi-monthly Publication: Updates every 2 months vs. monthly for other indices
- Temporal Lag: Data reflects transactions from 2-3 months ago vs. 3-4 months ago
- Provisional Data: Last 3 indices may be updated when additional reports arrive
- Linkage Warnings: Automatic recommendations against using provisional periods
๐งช Testing & Quality Assurance
Comprehensive Test Suite
- Unit Tests: Complete handler coverage with Vitest
- Integration Tests: Real CBS API integration tests
- Mock Testing: Isolated handler testing with mocked dependencies
- Error Handling: Network error and API error simulation
- Schema Validation: Input/output validation testing
Code Quality Tools
- TypeScript: Strict type checking with no
anytypes - ESLint: Modern flat config with TypeScript rules
- Prettier: Consistent code formatting
- Zod: Runtime type validation and inference
Development Commands
# Development
pnpm dev # Watch mode development
pnpm build # Production build
pnpm typecheck # TypeScript validation
# Testing
pnpm test # Run all tests
pnpm test:dev # Development mode testing
# Quality
pnpm lint # Lint code
pnpm lint:fix # Fix linting issues
pnpm format:check # Check formatting
pnpm format:write # Apply formatting
# Docker
docker build -t reuvenaor/israel-statistics-mcp:latest -f Dockerfile .
๐ง Development
Project Structure
- TypeScript ESM: Modern ES modules with TypeScript
- pnpm: Fast, efficient package management
- tsup: Fast TypeScript bundler with ESM output
- Docker: Multi-stage builds for optimized containers
- Vitest: Fast unit testing framework
Key Dependencies
@modelcontextprotocol/sdk: MCP server implementationzod: Type-safe validation and schema inferencenode-fetch: HTTP client for CBS API callsxml2js: XML response parsingtypescript: Type system and compilation
Configuration Files
tsconfig.json: TypeScript configuration with strict settingseslint.config.js: Modern ESLint flat configurationprettier.config.cjs: Code formatting rulesvitest.config.ts: Test framework configurationtsup.config.ts: Build tool configurationDockerfile: Multi-stage container build
๐ Performance & Scalability
- Rate Limiting: 5 concurrent operations maximum
- Efficient Parsing: Optimized XML/JSON transformation
- Memory Management: Streaming for large datasets
- Caching: Schema validation caching
- Error Recovery: Graceful degradation and retry logic
๐ API Response Examples
Index Topics Discovery
// Input
{ lang: "en", searchText: "housing", period: "M" }
// Output
{
topics: [
{
chapterId: "aa",
chapterName: "Housing Market Index",
subject: [
{
subjectId: 123,
subjectName: "Apartment Prices",
code: [
{
codeId: 180010,
codeName: "Housin
---
*README truncated. [View full README on GitHub](https://github.com/reuvenaor/israel-statistics-mcp).*
Alternatives
Related Skills
Browse all skillsGenerate an Agent Academy analytics report using Microsoft Clarity data and GitHub badge statistics. Use this skill to create HTML dashboard reports showing session trends, user metrics, and badge completion stats for Recruit, Operative, and Commander courses.
Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.
Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis
Expert data scientist for advanced analytics, machine learning, and statistical modeling. Handles complex data analysis, predictive modeling, and business intelligence. Use PROACTIVELY for data analysis tasks, ML modeling, statistical analysis, and data-driven insights.
Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.
Comprehensive personal finance management system for analyzing transaction data, generating insights, creating visualizations, and providing actionable financial recommendations. Use when users need to analyze spending patterns, track budgets, visualize financial data, extract transactions from PDFs, calculate savings rates, identify spending trends, generate financial reports, or receive personalized budget recommendations. Triggers include requests like "analyze my finances", "track my spending", "create a financial report", "extract transactions from PDF", "visualize my budget", "where is my money going", "financial insights", "spending breakdown", or any finance-related analysis tasks.