A collection of production-safe MCP servers: safe-mysql-mcp (read-only MySQL) and ssh-logs-mcp (remote log inspection)
Server provides 21 tools across MySQL and SSH log inspection with consistent naming (verb_noun pattern) and descriptions. All tools have input schemas with type definitions and parameter descriptions. However, output schemas are not explicitly documented in the code, limiting LLM planning capability. Error handling is minimal, most tools lack recovery guidance. Security-focused design (read-only guards, allowlists) is a strength, but descriptions could be more LLM-optimized (many exceed 200 chars). No tool annotations (readOnlyHint, destructiveHint) despite clear risk classifications.
Search a log file with grep.
List configured environments (name, description, host, forbidden).
List log files in a directory (simple glob pattern allowed).
Show the current MySQL connection context.
Describe a table using DESCRIBE table.
Execute a guarded write statement. Requires a writable profile; UPDATE/DELETE must include WHERE.
Run EXPLAIN for a MySQL SELECT/WITH query.
Output schemas not documented. Code shows db.execute() returns dict with 'rows' and 'columns' keys, but LLMs cannot infer downstream field names for chaining. E.g., mysql_query returns rows but schema structure is opaque.
Error handling lacks recovery guidance. Tools raise ValueError or generic exceptions without actionable next steps. E.g., 'Use mysql_query for read statements' is helpful, but most errors (connection failures, permission denied) offer no guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
List columns for a table or schema.table.
List databases/schemas, optionally filtered with a LIKE pattern.
List indexes for a table or schema.table.
List the configured MySQL profiles.
List tables/views in a schema, optionally filtered with a LIKE pattern.
Check whether the configured MySQL database is reachable.
Execute a guarded read-only SQL query. Use %s placeholders and pass params as a JSON array. SELECT/WITH get a default LIMIT when absent.
Sample rows from a table, with an optional simple WHERE condition.
Show the CREATE TABLE statement for a table or schema.table.
Count rows in a table, with an optional simple WHERE condition and %s params.
Return table metadata: columns and indexes.
Run a single read-only command after allowlist validation. Only pipelines built from tail/head/grep/zgrep/zcat/ls/wc/cat are permitted.
Show the last N lines of a log file.
Search a gzip-compressed log archive with zgrep.
No tool annotations despite clear risk classification. All tools are marked READ_ONLY or WRITE, but FastMCP definitions lack readOnlyHint/destructiveHint annotations. LLMs cannot infer safety properties from tool names alone.
Descriptions exceed 200 chars for query/execute tools, wasting tokens. E.g., mysql_query description is ~180 chars; mysql_execute is ~120. Baseline for A+ tools is 50-200 chars. Trim to essential info and move constraints to parameter descriptions.
Parameter 'profile' is optional across all tools but behavior when omitted is unclear. Code loads default profile, but LLMs cannot infer this from description 'Profile name (optional)'. Should state: 'Profile name; defaults to first configured profile if omitted.'