Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A comprehensive MCP server for SA-MP server development and management, enabling AI-assisted server administration, Pawn scripting, plugin management, and diagnostics.

README.md

<div align="center">

samp-mcp

A comprehensive MCP server for SA-MP server development and management

![npm version](https://www.npmjs.com/package/samp-mcp) ![npm downloads](https://www.npmjs.com/package/samp-mcp) ![license](LICENSE)

Manage, script, and audit SA-MP servers with AI assistance.

</div>

---

Installation

npm install -g samp-mcp
# or
yarn global add samp-mcp

Requires Node.js ≥ 18 and a functional SA-MP server directory.

---

Quick Start

1. Configure MCP Client

Add the following to your MCP client configuration (e.g., claude_desktop_config.json):

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

2. Connect to Project

Once initialized, tell the AI agent: "Connect to my SAMP server at C:\path\to\server"

3. Initialize AI Agent

Copy and paste this as your first prompt to the AI: > "SAMP Project. Read SAMP_RULES.md and follow encoding rules. Run set_server_root to start."

---

Tool Categories

Server Management

| Command | Description | |---|---| | set_server_root | Initialize and track a SAMP project directory | | manage_server | Start, Stop, or Restart the server process | | get_status | View hostname, players, and map statistics | | rcon_command | Execute RCON commands via AI |

Pawn Scripting

| Command | Description | |---|---| | read_pawn_script | Read source with encoding detection + line ranges | | write_pawn_script | Write source with backup + partial line replacement | | search_pawn_script | Search text across all .pwn/.inc files (efficient) | | fuzzy_find_file | Find files by partial name when you forgot the path | | get_function_body | Extract a single function body without reading whole file | | compile_pawn | Compile .pwn scripts and get structured errors | | restore_pawn_script | Restore a file from its latest backup (undo) | | fix_script_encoding | Recover corrupted UTF-8 Thai scripts to Windows-874 | | generate_boilerplate | Generate Commands, Dialogs, or Job templates | | inject_code | Compile and test snippets without server restart |

Plugin & Include Management

| Command | Description | |---|---| | search_plugin | Search GitHub repos for SAMP plugins with release info | | install_plugin | Install .dll/.so plugins — auto-extracts ZIP archives | | install_include | Download and install .inc libraries from URL |

Web & Info

| Command | Description | |---|---| | web_search | Search the web via DuckDuckGo for SAMP-related info |

Auditing & Diagnostics

| Command | Description | |---|---| | audit_script | Scan for large arrays or hardcoded Dialog IDs | | audit_sql | Detect SQL Injection risks (missing %e in mysql_format) | | audit_performance | Identify fast timers or heavy OnPlayerUpdate logic | | find_shadowing | Catch variable redefinitions (e.g., playerid) | | get_server_diagnostics | Analyze logs for crashes and plugin failures |

Automation

| Command | Description | |---|---| | generate_docs | Generate markdown documentation for the project | | create_deployment | Batch copy all necessary server files for distribution |

Meta

| Command | Description | |---|---| | check_for_updates | Check if a new version of SAMP-MCP is available on NPM | | update_mcp_server | Perform a self-update of the server via NPM |

---

Features

  • Thai Character Support — Native Windows-874 encoding with UTF-8 corruption recovery
  • Safe Editing — Automatic backups + partial line range replacement (no truncation bugs)
  • Efficient Search — Search across all scripts, fuzzy file find, extract single functions
  • Plugin Auto-Install — GitHub release discovery with ZIP auto-extraction
  • Web Search — DuckDuckGo integration for SAMP-related queries
  • Caching — Project info cached for 5 minutes to reduce token usage
  • AI-Powered — Designed for seamless integration with LLMs

---

License

MIT © Watcharapong Namsaeng

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.