# Algeria MCP server

> Provides AI assistants with data on Algeria's wilayas and communes, GPS location lookups, and validation for Algerian administrative formats.

- Repository: https://github.com/syscli/algeria-mcp
- Page: https://hostedmcp.org/servers/syscli/algeria-mcp
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add algeria-mcp -- npx -y @syscli/algeria-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "algeria-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@syscli/algeria-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "algeria-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@syscli/algeria-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"algeria-mcp","type":"stdio","command":"npx","args":["-y","@syscli/algeria-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "algeria-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@syscli/algeria-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add algeria-mcp -- npx -y @syscli/algeria-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.algeria-mcp]
command = "npx"
args = ["-y", "@syscli/algeria-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user algeria-mcp npx -- -y @syscli/algeria-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "algeria-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@syscli/algeria-mcp"
      ]
    }
  }
}
```

## Tools (6)

- `search_communes`
- `get_wilaya`
- `get_commune`
- `wilaya_changes`
- `locate_point`
- `validate`

## FAQ

### Does this server require an internet connection to access data?

No, the server runs locally and makes no network calls because all data is included in the package.

### What kind of formats can be validated?

You can validate phone numbers, RIB, RIP, CCP, license plates, postal codes, NIN, NIF, NIS, RC, wilayas, and communes.

### Can I find a commune using GPS coordinates?

Yes, the locate_point tool identifies the commune and wilaya for a given GPS point.
