lampa-mcp-server
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., "@lampa-mcp-serverList all streaming providers in the codebase"
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.
lampa-mcp-server
An MCP server for AI-assisted development on the Lampa open-source TV app.
It gives AI agents (Claude, Cursor, etc.) structured, read-only access to the Lampa source tree — so they understand the repo before making changes.
What it does
The server exposes 41 tools and 5 resources across seven capability layers:
Layer | File | Tools | Purpose |
Discovery |
| 6 | Navigate repo structure, list modules, search code, read files |
Analysis |
| 7 | Locate settings, API calls, UI components, translations, dependency maps |
Planning |
| 4 | Generate change plans, impact analysis, edit targets, risk scans |
Editing |
| 4 | Draft patches, scaffold plugins, generate hook/setting boilerplate |
Validation |
| 4 | Quality checks, find tests, resolve build commands, query docs |
Lampa Deep |
| 8 | Deep Lampa-specific analysis: providers, events, translations, lifecycle |
Advanced |
| 8 | File reads, storage schema, event bus map, network map, pattern guide |
Tools
Discovery
repo_overview— summarise app structure, folders, entrypoints, plugins, and scriptslist_modules— list JS/TS modules in any subfolderfind_files— find files by name pattern or extensionsearch_code— regex/text search with file:line previews (usesripgrepwhen available)read_file_segment— read a specific line range from any repo filelist_scripts— show all NPM scripts frompackage.json
Analysis
find_settings— locateLampa.Settings.addandLampa.Storageusage; optionally filter by keywordfind_api_calls— findfetch,$.ajax, and provider integrationsfind_ui_component— find templates, components, and views by namefind_translation_keys— look up translation key definitions and usages across all language filesfind_styles_for_module— find CSS/SCSS files related to a module or feature namemodule_dependency_map— map imports and reverse dependencies with change blast radiusfind_feature— infer all files relevant to a named feature (player, catalog, iptv, search, etc.)
Planning
plan_feature_change— step-by-step implementation plan (call beforedraft_patch)impact_analysis— reference count and risk level for a target filesuggest_edit_targets— minimal file set and safe insertion guidance for a feature requestrisk_scan— detect coupling risks: global events, storage, shared templates, DOM globals
Editing
draft_patch— guided patch draft with file previews and Lampa patterns (requires priorplan_feature_change)insert_hook— find the bestLampa.Listenerhook point for a lifecycle triggeradd_setting— generate toggle / select / input setting boilerplate with storage wiringscaffold_plugin_integration— full plugin folder scaffold withmain.js, CSS, and component boilerplate
Validation
run_grep_checks— scan for TODOs,console.logleftovers, looseundefinedchecks, hardcoded stringslist_related_tests— find spec files related to a module or featurerun_build_hint— resolve the right build / dev / test / lint command frompackage.jsondoc_lookup— search generated docs or README for a topic
Lampa Deep
plugin_deep_dive— single-call analysis of a plugin folder: files, Lampa API usage, events, settings, entry-point previewlist_streaming_providers— catalog all online streaming providers with base URLs, methods, and Lampa APIs usedtranslation_coverage— compare all language files against the English reference; shows coverage % and missing keys per languagetrace_event— trace aLampa.Listenerevent through the full codebase: who sends it, who follows itlampa_api_surface— extract the completeLampa.*global API surface: every module with sub-methods and file usage countslist_templates— list all UI templates insrc/templates/; optionally read one to inspect HTML and data bindingsgenerate_plugin_boilerplate— generate working plugin code for selected features: settings, hooks, storage, lang keys, IPTVcomponent_lifecycle— deep-analyse a component: lifecycle methods, events, APIs, storage, templates, and settings
Advanced
read_file— read a complete file (truncated atmax_lines); useread_file_segmentfor large filesget_storage_schema— scan allLampa.Storage.get/setcalls; returns a complete key → default / readers / writers tablelist_all_events— build a fullLampa.Listenerevent bus map: every event, listener count, emitter count, orphan detectionget_network_map— extract all hardcoded URLs, base URL variables, and proxy names from any scopevalidate_plugin— score a plugin against 10 Lampa conventions (IIFE, strict mode,appreadybootstrap, noeval, etc.)extract_template_html— extract actual HTML markup, CSS classes, and data-binding placeholders fromsrc/templates/*.jsget_core_module— browse and readsrc/core/modules; lists all available when called without a nameexplain_lampa_pattern— pattern reference guide backed by live source examples:iife-plugin,storage,settings,events,component,request,template,activity,player-hook
Resources
URI | Description |
| Top-level directory listing |
| NPM scripts as JSON |
| Generated JSDoc (requires |
| All |
| All API and network call sites |
Related MCP server: logicstamp-mcp
Requirements
Node.js 20+
A local checkout of the Lampa source repo
Optional:
ripgrep(rg) for faster search — falls back to pure Node if not present
Setup
git clone https://github.com/your-username/lampa-mcp-server
cd lampa-mcp-server
npm install
npm run buildSet the path to your Lampa checkout via the environment variable:
export LAMPA_REPO_PATH=/path/to/lampa-sourceOr pass it inline when starting the server:
LAMPA_REPO_PATH=/path/to/lampa-source node dist/index.jsConnect to Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"lampa-mcp-server": {
"command": "node",
"args": ["/absolute/path/to/lampa-mcp-server/dist/index.js"],
"env": {
"LAMPA_REPO_PATH": "/absolute/path/to/lampa-source"
}
}
}
}Connect to Cursor
Add to .cursor/mcp.json in your project (or the global ~/.cursor/mcp.json):
{
"mcpServers": {
"lampa-mcp-server": {
"command": "node",
"args": ["/absolute/path/to/lampa-mcp-server/dist/index.js"],
"env": {
"LAMPA_REPO_PATH": "/absolute/path/to/lampa-source"
}
}
}
}Recommended agent workflow
The server enforces a deliberate two-step contract: plan first, patch second.
repo_overview → find_feature → module_dependency_map
→ plan_feature_change → draft_patchFor deep plugin work, start with the single-call analysis tools:
plugin_deep_dive → trace_event → get_storage_schema
→ plan_feature_change → draft_patch → validate_pluginSystem prompt for best results:
You are an AI coding agent working on the Lampa source repository. Always begin by collecting context through MCP tools: overview, relevant modules, settings, API calls, and dependency map. Do not invent project structure or framework patterns. Before writing code, produce: affected files, why each matters, implementation steps, risks, and validation checks. When generating code, preserve naming, style, and surrounding patterns used in the target files.
Project structure
src/
├── index.ts # Server entry point
├── config.ts # Repo path config (LAMPA_REPO_PATH env var)
├── utils/
│ ├── fs.ts # File system helpers
│ ├── search.ts # ripgrep + Node fallback search
│ ├── lampa.ts # Lampa-specific patterns, feature map, risk patterns
│ └── lampa_deep.ts # Deep analysis utilities (events, lifecycle, providers)
├── tools/
│ ├── discovery.ts # Phase 1 — repo navigation (6 tools)
│ ├── analysis.ts # Phase 2 — Lampa understanding (7 tools)
│ ├── planning.ts # Phase 3 — change planning (4 tools)
│ ├── editing.ts # Phase 4 — assisted editing (4 tools)
│ ├── validation.ts # Phase 5 — quality checks (4 tools)
│ ├── lampa_deep.ts # Lampa-specific deep analysis (8 tools)
│ └── advanced.ts # File I/O, schema, pattern guide (8 tools)
└── resources/
└── index.ts # MCP resources (5 read-only stable context endpoints)Development
npm run build # compile TypeScript → dist/
npm run dev # run directly with ts-node
npm start # run compiled dist/index.js
npm run typecheck # type-check without emitting
npm run lint # ESLint
npm run lint:fix # ESLint with auto-fix
npm run format # Prettier write
npm run format:check # Prettier check (CI)License
MIT
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
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/pavelpikta/lampa-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server