SAMP-MCP
Search the web via DuckDuckGo for SA-MP related information.
Search GitHub repositories for SA-MP plugins and install them, including automatic extraction of ZIP archives.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SAMP-MCPSearch for 'samp-gps' plugin on GitHub"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
samp-mcp
A comprehensive MCP server for SA-MP server development and management
Manage, script, and audit SA-MP servers with AI assistance.
Installation
npm install -g samp-mcp
# or
yarn global add samp-mcpRequires Node.js ≥ 18 and a functional SA-MP server directory.
Related MCP server: PMCP - Perfect Model Context Protocol Server
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.mdand follow encoding rules. Runset_server_rootto start."
Tool Categories
Server Management
Command | Description |
| Initialize and track a SAMP project directory |
| Start, Stop, or Restart the server process |
| View hostname, players, and map statistics |
| Execute RCON commands via AI |
Pawn Scripting
Command | Description |
| Read source with encoding detection + line ranges |
| Write source with backup + partial line replacement |
| Search text across all .pwn/.inc files (efficient) |
| Find files by partial name when you forgot the path |
| Extract a single function body without reading whole file |
| Compile .pwn scripts and get structured errors |
| Restore a file from its latest backup (undo) |
| Recover corrupted UTF-8 Thai scripts to Windows-874 |
| Generate Commands, Dialogs, or Job templates |
| Compile and test snippets without server restart |
Plugin & Include Management
Command | Description |
| Search GitHub repos for SAMP plugins with release info |
| Install .dll/.so plugins — auto-extracts ZIP archives |
| Download and install .inc libraries from URL |
Web & Info
Command | Description |
| Search the web via DuckDuckGo for SAMP-related info |
Auditing & Diagnostics
Command | Description |
| Scan for large arrays or hardcoded Dialog IDs |
| Detect SQL Injection risks (missing %e in mysql_format) |
| Identify fast timers or heavy OnPlayerUpdate logic |
| Catch variable redefinitions (e.g., playerid) |
| Analyze logs for crashes and plugin failures |
Automation
Command | Description |
| Generate markdown documentation for the project |
| Batch copy all necessary server files for distribution |
Meta
Command | Description |
| Check if a new version of SAMP-MCP is available on NPM |
| 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KongGithubDev/SAMP-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server