@mukundakatta/escape-mcp
v0.1.0
Published
MCP server: escape strings for safe use inside regex, shell, SQL, JSON, or HTML.
Downloads
69
Maintainers
Readme
escape-mcp
MCP server: escape strings for safe embedding inside six common contexts. No deps.
Tool
escape
{ "text": "O'Brien", "context": "sql" }→ { "result": "'O''Brien'" }
| context | what happens |
|---------|-------------------------------------------|
| regex | backslash-escape regex metachars |
| shell | POSIX single-quote wrap with '\'' runs |
| sql | single-quote wrap with doubled quotes |
| json | JSON.stringify |
| html | basic entity-encode (& < > " ') |
| url | encodeURIComponent |
Configure
{ "mcpServers": { "escape": { "command": "npx", "args": ["-y", "@mukundakatta/escape-mcp"] } } }License
MIT.
