SAMP
БесплатноНе проверенA comprehensive MCP server for SA-MP server development and management, enabling AI-assisted server administration, Pawn scripting, plugin management, and diagn
Описание
A comprehensive MCP server for SA-MP server development and management, enabling AI-assisted server administration, Pawn scripting, plugin management, and diagnostics.
README
samp-mcp
A comprehensive MCP server for SA-MP server development and management
npm version npm downloads license
Manage, script, and audit SA-MP servers with AI assistance.
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.mdand follow encoding rules. Runset_server_rootto 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
Установить SAMP в Claude Desktop, Claude Code, Cursor
unyly install samp-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add samp-mcp -- npx -y samp-mcpFAQ
SAMP MCP бесплатный?
Да, SAMP MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для SAMP?
Нет, SAMP работает без API-ключей и переменных окружения.
SAMP — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить SAMP в Claude Desktop, Claude Code или Cursor?
Открой SAMP на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare SAMP with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
