rigid-pipeline-mcp
Provides tools for interacting with SQLite databases, enabling schema inspection, querying, and executing operations such as CRUD.
Click on "Deploy 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., "@rigid-pipeline-mcp find all PDFs in ~/Documents and list their metadata"
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.
rigid-pipeline-mcp
English
A local MCP server exposing reusable, single-item "blocks" for file
operations, document metadata, folder analysis, local-LLM queries, and
SQLite CRUD — callable individually as normal MCP tools, or composed
into one call via run_pipeline.
Architecture
gateway.py mounts five independent FastMCP sub-servers into one process:
Sub-server | Tools | Namespace |
file-ops | find/read/write/hash files, preview/execute delete & move |
|
metadata | epub / audio+m4b / PDF / DOCX metadata |
|
analysis | folder extension breakdown + tree |
|
llm | local-model queries via LM Studio (OpenAI-compatible) |
|
sql | SQLite schema/query/execute |
|
orchestrator |
| — |
Running it
uv sync
uv run fastmcp dev inspector gateway.py # interactive testingPoint any MCP client at gateway.py over stdio for real use.
Composing pipelines
A single run_pipeline call can chain steps, pass results between
them, and map a block over a list:
[
{"block": "find_files", "args": {"folder": "/path", "pattern": "*.epub"}, "save_as": "found"},
{"block": "file_hash", "for_each": "@found.paths", "item_arg": "path"}
]See .claude/skills/rigid-pipeline/SKILL.md for the full tool catalog
and pipeline mechanics (save_as/for_each/item_arg/@refs).
Safety
Anything that writes or deletes (write_file, execute_op,
db_execute) requires confirm="EXECUTE" and logs what it did.
Nothing runs destructively by default.
Status
Personal project, evolving. No license file yet — ask before reusing outside personal/reference purposes.
Related MCP server: Atlas MCP Server
Polski
Lokalny serwer MCP z wielokrotnego użytku "klockami" do operacji na
plikach, metadanych dokumentów, analizy folderów, zapytań do lokalnego
modelu i CRUD na SQLite — wołanymi pojedynczo jako zwykłe narzędzia
MCP, albo składanymi w jedno wywołanie przez run_pipeline.
Architektura
gateway.py montuje pięć niezależnych sub-serwerów FastMCP w jednym
procesie:
Sub-serwer | Narzędzia | Namespace |
file-ops | find/read/write/hash plików, preview/execute delete i move |
|
metadata | metadane epub / audio+m4b / PDF / DOCX |
|
analysis | skład folderu wg rozszerzeń + drzewo |
|
llm | zapytania do lokalnego modelu przez LM Studio (OpenAI-compatible) |
|
sql | schema/query/execute na SQLite |
|
orchestrator |
| — |
Uruchomienie
uv sync
uv run fastmcp dev inspector gateway.py # test interaktywnyPodłącz dowolnego klienta MCP do gateway.py przez stdio do realnego użytku.
Składanie pipeline'ów
Jedno wywołanie run_pipeline może połączyć kroki, przekazać wyniki
między nimi, i zmapować klocek po liście:
[
{"block": "find_files", "args": {"folder": "/sciezka", "pattern": "*.epub"}, "save_as": "found"},
{"block": "file_hash", "for_each": "@found.paths", "item_arg": "path"}
]Pełny katalog narzędzi i mechanika pipeline'u (save_as/for_each/
item_arg/@refs) — w .claude/skills/rigid-pipeline/SKILL.md.
Bezpieczeństwo
Wszystko co zapisuje albo usuwa (write_file, execute_op,
db_execute) wymaga confirm="EXECUTE" i loguje co zrobiło. Nic nie
działa destrukcyjnie domyślnie.
Status
Projekt osobisty, w rozwoju. Brak jeszcze pliku licencji — zapytaj przed użyciem poza celami osobistymi/referencyjnymi.
Historia
Powstało jako port istniejących skryptów (rigid-pipeline/pipeline/,
mcp_cleaning_tool) na architekturę MCP — logika ekstrakcji metadanych,
hashowania i czyszczenia sidecarów pochodzi stamtąd 1:1, zmieniła się
tylko warstwa podłączenia.
Available Tools
14 toolsdb_executeExecute database statementADestructive
Runs a single SQL statement that isn't SELECT — CREATE TABLE, INSERT, UPDATE, DELETE, ALTER, DROP. Requires confirm='EXECUTE'. Creates the database file (and its parent folder) if it doesn't exist yet — this is how you create a new database: CREATE TABLE against a path that doesn't exist yet. One statement per call. params: a list for '?' positional placeholders, or a dict for ':name' named placeholders — write a whole row with one call by pairing a for_each step (item_arg='params') over a list of row-dicts with an INSERT using ':name' placeholders matching the dict's keys. confirm/log_path go in args, shared across every item in for_each — one 'EXECUTE' in the step still gates the whole series. Logs every statement to log_path.
Inputs: sql (required), confirm (required), db_path (required), log_path (required), +1 more. Returns: object
db_queryQuery databaseARead-onlyIdempotent
Runs a single read-only SELECT query. Use params instead of formatting values into the sql string — a list for '?' positional placeholders, or a dict for ':name' named placeholders. The dict form is what makes for_each useful here: a for_each step with item_arg='params' over a list of row-dicts (e.g. from get_metadata) binds each dict directly — extra keys not referenced by the sql are simply ignored.
Inputs: sql (required), db_path (required), params. Returns: object
db_schemaDatabase schemaARead-onlyIdempotent
Lists tables and their columns in a SQLite database — orientation before writing queries. Does not create the file if it's missing.
Inputs: db_path (required). Returns: object
files_execute_opExecute file operationADestructive
Executes a SINGLE delete/move operation. Requires confirm='EXECUTE' — without it, nothing happens. Logs every operation to log_path. Use with for_each (confirm and log_path shared in args across all items) to run on many files in one pipeline step — a single 'EXECUTE' in the step still gates the whole series, just like it used to gate the whole batch.
Inputs: src (required), action (required), confirm (required), log_path (required), +1 more. Returns: object
files_file_hashFile hashARead-onlyIdempotent
Full SHA1 of the file's contents — a stable identifier independent of the file path.
Inputs: path (required). Returns: object
files_find_filesFind filesARead-onlyIdempotent
Finds files matching a pattern (e.g. '*.epub') in a folder. Returns a list of paths — the typical 'producer' for for_each steps in run_pipeline: find, then do something with each result.
Inputs: folder (required), pattern, recursive. Returns: object
files_preview_opPreview file operationARead-onlyIdempotent
Preview of a SINGLE delete/move operation — changes nothing on disk, just checks whether the file exists and how big it is. Use with for_each to check many files at once before execute_op.
Inputs: src (required), action (required), dst. Returns: object
files_read_fileRead fileARead-onlyIdempotent
Reads a text file, optionally windowed by line range (start_line, max_lines) and/or capped by max_chars. total_lines tells you how big the file is, so you know whether/how to window a large one. Errors clearly on non-text files instead of returning garbage. Pair with for_each + build_prompts + ask_llm to summarize many files with a cheap local model instead of spending the calling agent's own context on the raw text.
Inputs: path (required), max_chars, max_lines, start_line. Returns: object
files_write_fileWrite fileADestructiveIdempotent
Writes text to a file. mode='overwrite' replaces the whole file (creating it if missing); mode='append' adds to the end. Requires confirm='EXECUTE'. Creates the parent folder if missing. path and content are separate arguments (not one dict like db_execute's params) so a for_each step can omit item_arg and spread a list of {"path": ..., "content": ...} dicts directly as calls to this.
Inputs: path (required), confirm (required), content (required), mode. Returns: object
fs_analyze_folderFolder analysisBRead-onlyIdempotent
Breakdown of a folder by file extension (count/size/%) + a structure tree. Skips dependency folders (node_modules, .venv, etc.) by default.
Inputs: path (required), max_depth, max_items, skip_dependency_dirs. Returns: object
llm_ask_llmAsk local modelARead-only
Short query to the local model — for quick, simple decisions/ classification inside a pipeline. Use with for_each after build_prompts to ask about many items at once. model defaults to None, meaning: ask the server what's already loaded (/v1/models) and use that, instead of requesting a specific model by name — avoids forcing a model swap or a second model loading into RAM when something else (e.g. LM Studio Bionic) is already serving a different model on the same port. Pass an explicit model to override this.
Inputs: prompt (required), model, timeout, base_url. Returns: object
llm_build_promptsBuild prompts from templateARead-onlyIdempotent
Fills a template (Python str.format) with each item in a list. A step between a producer and ask_llm in for_each — builds N full prompts without the agent having to type them out by hand. Plain items (strings, numbers) fill a positional '{}' placeholder; dict items (e.g. read_file's {"path":..., "content":...}) fill named placeholders like '{content}' or '{path}' instead.
Inputs: items (required), template (required). Returns: object
meta_get_metadataFile metadataARead-onlyIdempotent
Universal file metadata: epub (DC/calibre), audio/m4b (tags + duration), PDF, DOCX. Always includes path/name/size/type; the rest of the fields depend on the type and are flattened (no nesting).
Inputs: path (required). Returns: object
run_pipelineRun block pipelineA
Runs a list of steps in order. Each step: a block name from REGISTRY, args, optionally save_as (remember the result under a name) and for_each (run the block once per item in a list from an earlier result, referenced as '@name.field'). For each item, either item_arg names the one argument it fills, or — if item_arg is omitted and the item is itself a dict — its keys are spread directly as keyword arguments (for blocks that take several values per call, e.g. write_file's path+content). The result of a for_each step is a list of dicts pairing each item's identifying fields with the block's output — otherwise there'd be no way to tell which result belongs to which item. A step that raises an exception doesn't stop the rest — ok=False + error land in that step's result.
Inputs: steps (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool has a clearly distinct purpose, and the domain prefixes (files_, db_, llm_, fs_, meta_) make separation immediate. Even the closely paired preview/execute file operations are unambiguous, and read_file vs get_metadata vs analyze_folder are clearly delineated.
Names mostly follow a predictable prefix + verb_noun pattern and are consistently snake_case. Minor deviations like db_schema, files_file_hash, and run_pipeline (no prefix) break the pattern slightly, but the overall convention remains readable and navigable.
14 tools is well within the ideal range, and each tool earns its place by covering a distinct operation: file I/O, file operations, DB access, LLM prompting, metadata, folder analysis, and pipeline orchestration. The count feels proportionate to the server's broad but coherent scope.
The core pipeline lifecycle is well covered: producing items, processing them with LLM/DB/files, and orchestrating for_each steps. Minor gaps exist, such as no file copy operation and no multi-statement transaction support in db_execute, but agents can work around these without major dead ends.
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables file system operations, web scraping, and AI-powered search through MCP tools for use by LLM agents.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents and users to manage workspace files, monitor system metrics, take persistent notes, and retrieve weather data via MCP tools and resources.-
- AlicenseNot gradedqualityDmaintenanceProvides a set of MCP tools to let AI assistants like Claude, Cursor, and VS Code Copilot interact with SQLite databases, supporting querying, schema management, and data import/export.10 npmMIT
- AlicenseAqualityCmaintenanceEnables users to access local files, manage persistent notes via CRUD, fetch URLs, inspect system information, and analyze or transform text through MCP tools.11MIT