MCP server for MTA:SA documentation with intelligent search and caching
An MCP (Model Context Protocol) server that gives AI assistants reliable,
structured access to Multi Theft Auto: San Andreas documentation.
It combines fast keyword search, semantic matching, and SQLite-backed caching so
agents can discover the right APIs and fetch authoritative docs without manual
wiki scraping.
search_events, find_events_for_task)database -> db* APIs)Requirements:
Launcher note:
npx, pnpx, bunx, or yarn dlx-style flows,npm install -g mtasa-docs-mcpor:
pnpm add -g mtasa-docs-mcpgit clone https://github.com/Luminaire1337/mtasa-docs-mcp.git
cd mtasa-docs-mcp
pnpm install
pnpm buildIf your environment skips optional native dependencies, run:
pnpm install --force
pnpm rebuild better-sqlite3 --config.ignore-scripts=falseGlobal: ~/.cursor/mcp.json
Project: .cursor/mcp.json
{
"mcpServers": {
"mtasa-docs": {
"command": "npx",
"args": ["-y", "mtasa-docs-mcp"]
}
}
}Workspace: .vscode/mcp.json
User: Command Palette -> MCP: Open User Configuration
{
"servers": {
"mtasa-docs": {
"command": "npx",
"args": ["-y", "mtasa-docs-mcp"]
}
}
}Or add it from terminal:
code --add-mcp "{\"name\":\"mtasa-docs\",\"command\":\"npx\",\"args\":[\"-y\",\"mtasa-docs-mcp\"]}"claude mcp add-json mtasa-docs '{"type":"stdio","command":"npx","args":["-y","mtasa-docs-mcp"]}'Global config file: ~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"mtasa-docs": {
"type": "local",
"command": ["npx", "-y", "mtasa-docs-mcp"],
"enabled": true
}
}
}Config file: ~/.gemini/antigravity/mcp_config.json
{
"mcpServers": {
"mtasa-docs": {
"command": "npx",
"args": ["-y", "mtasa-docs-mcp"]
}
}
}{
"mcpServers": {
"mtasa-docs": {
"command": "node",
"args": ["/absolute/path/to/mtasa-docs-mcp/build/index.js"]
}
}
}If mtasa-docs-mcp is already published, replace the command with:
{
"mcpServers": {
"mtasa-docs": {
"command": "npx",
"args": ["-y", "mtasa-docs-mcp"]
}
}
}pnpm build
pnpm test
pnpm smoke
pnpm verify
pnpm verify:fullUseful checks:
pnpm check:versions - keep package.json and MCP server version alignedpnpm check:changelog - ensure CHANGELOG.md has current release headingpnpm check:tool-names - prevent legacy tool naming regressionsScripts are located in scripts/ (build, smoke, release guards).
Release automation is handled by .github/workflows/release.yml.
package.json and src/index.ts.Unreleased into a versioned section inCHANGELOG.md using ## [x.y.z] - YYYY-MM-DD.git tag v<version> && git push origin v<version>.Branching policy:
v1.0.0: direct pushes to master are allowed.v1.0.0: use PR-based development for all changes to master.On release tag pushes (v*.*.*), the release workflow:
pnpm verify:fullCHANGELOG.mdIn npm package settings, configure a trusted publisher for this repository and
workflow:
Luminaire1337/mtasa-docs-mcp.github/workflows/release.yml.github/workflows/ci.yml - verification on push/PR to master (Ubuntu +.github/workflows/release.yml - automated publish and GitHub release onv*.*.*)AGENTS.md - architecture and contributor guidanceFEATURES.md - roadmap and ideasCHANGELOG.md - release historySECURITY.md - vulnerability disclosure policyGNU General Public License v3.0. See LICENSE.
Luminaire1337/mtasa-docs-mcp
January 14, 2026
April 13, 2026
TypeScript