# SAMP MCP server

> Manage, script, and audit SA-MP servers with AI assistance, including tools for textdraw design, texture editing, and 3D model previewing.

- Repository: https://github.com/KongGithubDev/SAMP-MCP
- Page: https://hostedmcp.org/servers/konggithubdev/samp-mcp
- Transport: stdio
- Stars: 6
- License: MIT

## Install

### Claude Code

```sh
claude mcp add samp-mcp -- npx -y samp-mcp
```

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

```json
{
  "mcpServers": {
    "samp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samp-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "samp-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "samp-mcp"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "samp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samp-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add samp-mcp -- npx -y samp-mcp
```

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

```toml
[mcp_servers.samp-mcp]
command = "npx"
args = ["-y", "samp-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user samp-mcp npx -- -y samp-mcp
```

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

```json
{
  "mcpServers": {
    "samp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samp-mcp"
      ]
    }
  }
}
```

## Tools (19)

- `set_server_root`
- `manage_server`
- `get_status`
- `rcon_command`
- `file_read`
- `file_read_many`
- `file_write`
- `file_edit`
- `file_grep`
- `file_search`
- `file_tree`
- `file_list`
- `file_detect_encoding`
- `file_convert_encoding`
- `file_info`
- `file_line_endings`
- `file_bom`
- `file_allowed_dirs`
- `file_encodings`

## FAQ

### How do I install SAMP-MCP?

You can install it globally using npm with `npm install -g samp-mcp` or via yarn using `yarn global add samp-mcp`.

### Can I preview textdraws without restarting the server?

Yes, the server allows you to design textdraws and view the results on a web page without needing a server restart or launching the game.

### Does it support 3D model exporting?

Yes, the `model_export` tool can write models to Wavefront OBJ + MTL or glTF 2.0 formats.
