datagov-mcp

This project is designed to easily interact with the Israeli Government Public API (data.gov.il). It simplifies the installation of dependencies and the setup of the server, providing developers with a quick environment to utilize the API.

GitHub Stars

134

User Rating

Not Rated

Favorites

0

Views

31

Forks

28

Issues

7

Installation
Difficulty
Intermediate
Estimated Time
10-20 minutes
Requirements
Python 3.7 or higher
uv package manager

Installation

Installation

Prerequisites

Please specify required software and versions:
Python: 3.7 or higher
uv: Latest version

Installation Steps

1. Clone Repository

bash
git clone https://github.com/aviveldan/datagov-mcp
cd datagov-mcp

2. Install Dependencies

bash
uv venv
.venv\Scripts\activate  # For MacOS / Linux use source .venv/bin/activate
uv pip install -r pyproject.toml
uv lock

Troubleshooting

Common Issues

Issue: Server won't start Solution: Check Python version and reinstall dependencies. Issue: Server won't start due to busy ports Solution: Use nano-dev-utils to release ports.

Configuration

Configuration

Basic Configuration

Claude Desktop Setup

Edit ~/.config/claude-desktop/claude_desktop_config.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
json
{
  "mcpServers": {
    "datagov-mcp": {
      "command": "python",
      "args": ["server.py"]
    }
  }
}

Environment Variables

Set the following environment variables as needed:
bash
export API_KEY="your-api-key"

Security Settings

Store API keys in environment variables or secure configuration files
Set appropriate file access permissions

Examples

Examples

Basic Usage

Here are basic usage examples for the MCP server:

Start the Server

bash
fastmcp install server.py

Test with MCP Inspector

bash
fastmcp dev server.py

Port Release Script

python
from nano_dev_utils import release_ports 
pr = release_ports.PortsRelease()
pr.release_all()

Use Cases

Search for specific datasets and retrieve related information.
Display detailed information about government organizations and check contact details.
Filter specific resources to extract necessary data.
Search the datastore to obtain data that meets specific criteria.

Additional Resources