Skip to main content
Glama
875,235 tools. Updated 2026-11-28 12:37

"MySQL Query Basics and Examples" matching MCP tools:

  • Turn raw EXPLAIN output into a plain-language diagnosis — no query needed. Paste PostgreSQL EXPLAIN / EXPLAIN ANALYZE (text or JSON) or MySQL EXPLAIN (tabular, \G, FORMAT=JSON, FORMAT=TREE) and get: what the planner is doing step by step, where the cost concentrates, named risk findings (full scans, spilling sorts, nested-loop blowups, row misestimates) with index suggestions, and what to look at next. Use when the user pastes EXPLAIN output or asks 'can you read this plan'. Input is analyzed in memory and never stored.
    ConnectorOAuth
  • PHP + MySQL plans: runs one read-only SQL statement (SELECT, SHOW, DESCRIBE, EXPLAIN or WITH … SELECT) against the site's database and returns the rows. Runs in a read-only transaction; use execute_sql to change data. Use ? placeholders with params for values.
    ConnectorOAuth
  • Plaintext logins captured by the interactive sensors (sensors that answer as a real service and hold the session): username, password, the service they were tried on, the outcome and the source address, newest first, plus the pairs tried most and a per-service breakdown. Use for "what passwords are attackers trying on SSH", "which credentials did this IP try", "what logins hit MySQL this week". For whether an address is hostile overall, use ioc_lookup_tool; for the rest of what it did in its sessions, use interactive_sessions_tool. service: a service name such as ssh-password, telnet-login, mysql-login, rdp-credssp or smb-ntlmssp, or empty for all. source: an address or CIDR, or empty for all. window: 24h, 7d (default) or 30d, capped at the plan's query window. limit: 1 to 200, default 50. These records feed no verdict, and ioc_lookup_tool does not include them.
    ConnectorNo auth
  • [ExoBench server version: 1.4.30] Benchmark a raw SQL query across increasing dataset sizes in an ephemeral SQLite database. SQLite ONLY. For Postgres/SQL Server/MySQL use benchmarkSql instead (far faster; generates data inside the database). Call getMcpDocs('benchmark-sql-generic') first for full guidance and examples. WHEN TO USE: to see how a SQLite query's plan and timing change as row counts grow. Prefer EXPLAIN QUERY PLAN queries for plan analysis; use plain SELECT only to sanity-check correctness. EPHEMERAL: each call builds a fresh database from `schema` and destroys it on return — nothing persists. Pass the FULL `schema` (CREATE TABLE + indexes; NO INSERTs — data is auto-generated) in EVERY call. `correlationId` is tracking only; it does NOT preserve DB state. KEY INPUTS: - query: SQL to benchmark (typically EXPLAIN QUERY PLAN SELECT ...) - schema: CREATE TABLE statements only; declare FKs with REFERENCES so generated data is valid - numRowsToCreate: row counts per iteration, e.g. [100, 1000, 10000] - Optional: perTableRowsOverride (per-table counts), randomSeedOverride (reproducible data), columnConstraints (control generated values), warmCache OUTPUT: JSON array, one object per iteration, each with `sql`, `output` (2D array, headers first), `runtimeDurationMs`, and `rowsAreCapped`. Output is capped at 30 rows but the full result set is always traversed for accurate timing. On error: {"error": ..., "sql": ...}. LIMITS: max 5 scale points per request; max 3,000,000 rows per scale point (sum of all tables); Requests exceeding limits are rejected. IF THIS TIMES OUT: you receive a workerId and a "still running" status — that is NOT a result. Call benchmarkSqlGenericResults(workerId) repeatedly until it returns a terminal result. Do NOT end your turn or report findings while a worker is still running. A timed-out response's `data` field MAY carry best-effort partial results — do not depend on their presence.
    ConnectorOAuth
  • Find your worst queries by TOTAL time — no connection needed. Paste a MySQL slow query log or a PostgreSQL pg_stat_statements export and get a ranked top-N: each query shape with calls, total/mean time, and (slow log) the rows-examined-to-sent ratio, fingerprinted so thousands of log lines collapse into a few classes. Flags the dominant query, N+1 patterns, and full-scan ratios, reports how concentrated the load is (what share of total time the top shapes own), and hands the worst offenders to sixta_analyze_query. Call this whenever the user shares a slow query log or pg_stat_statements export — even a long one — or asks which queries are slowest: summing time across thousands of log lines is arithmetic a model cannot do reliably by eye. Input is analyzed in memory and never stored.
    ConnectorOAuth
  • Provisions a managed MySQL (or MariaDB) database on a dedicated VM on your private network - the relational-database resource (use this instead of create_database when the app needs MySQL/MariaDB, e.g. WordPress, NextCloud, Matomo, many PHP/LAMP apps). Requires a recent plan_managed_datastore. For app deployments, prefer deploy_app database:'managed' with db_engine mysql/mariadb so plan_deploy includes and wires the DB automatically. It is PRIVATE - reachable only from another instance on the same private network, via the DB's internal/private IP (port 3306), not a public address. Get the ids from plan_managed_datastore/list_flavors/list_private_networks/list_keypairs. Provisioning takes ~5 min; poll list_relational_databases until status='ready', then the connection details (private_ip, port 3306, db_name, db_user) are populated. MySQL is created with mysql_native_password auth so older clients/apps connect cleanly. (ClickHouse is a separate resource - use create_clickhouse / list_clickhouse_databases.)
    ConnectorNo auth

Matching MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    A Model Context Protocol server that provides read-only MySQL database queries for AI assistants, allowing them to execute queries, explore database structures, and investigate data directly from AI-powered tools.
    3
    75 npm
    13
    MIT

Matching MCP Connectors

  • Curated TuLugar guides (general education, kept current): buying-process (step-by-step + documents), foreigners (rights + restrictions for non-Paraguayans), closing-costs (what fees exist), renting (contracts, deposits, garante), publishing (listing tips), airbnb (short-term rental basics). ALWAYS use this for "how does buying/renting work" / process / documents questions — the content IS in scope to share; only personalized legal advice is not.
    ConnectorNo auth
  • Get the basics for a match in ONE call: the score, whether it's live, when it kicks off, and who's favored. No betting knowledge needed — this answers "who's winning?", "what's the score?", "what time does Brazil play (in my timezone)?", "who's the favorite?". Returns the live score + match clock, the status, the kickoff time (in ``timezone`` if you pass an IANA name like "America/New_York"), the favored team with a plain win probability (de-vigged from the 1x2 line), and a ready-to-read ``summary`` you can quote directly. Args: query: natural-language fixture or team, e.g. "Brazil vs Argentina" or just "Brazil". timezone: optional IANA timezone (e.g. "America/New_York", "Asia/Shanghai") for the kickoff time; default UTC. sport: optional filter — "football" or "basketball". date: optional UTC date "YYYY-MM-DD" to disambiguate same-name fixtures. On an ambiguous query, ``status`` is "ambiguous" and ``ask_user`` carries a prompt — do not guess. ``favorite`` is best-effort (null when no 1x2 is on file for the fixture).
    ConnectorNo auth
  • Turns a country name, alias or code (English, Japanese, Chinese) into ISO codes: matches[] {iso2, iso3, name, score}, best first, max 5, empty if none. Call it first when you only have a name: get_country_facts, check_entry_requirements, get_trip_brief and the other tools take ISO codes. Exact, prefix (3+ chars) or substring (4+) match, ignoring case and punctuation; no spelling correction. Names only (CLDR): no sources or confidence. Parameters: pass query as the user wrote it; if nothing matches, retry with the official or local name. lang only localizes the returned names. Examples: {"query":"日本"}, {"query":"South Korea","lang":"ja"}. Read-only; free and keyless, no quota.
    ConnectorNo auth
  • Finds the pages on wotablet.de that answer a question about Tablets: comparison pages with current prices (by feature or price range), buying guides and brand pages – each with title, summary and link. USE WHEN the user wants advice rather than one price: "which Tablet should I buy", "what to look for", "is X worth it", "models by <brand>", or a how-to/problem topic. PARAMETERS: "query" = topic or question (optional; without it you get the main entry pages). EXAMPLES: {"query":"iPad neu"} · {"query":"iPad Air","language":"en"}. RETURNS: browse.comparisons[], browse.guides[], browse.brands[], browse.featured[] (title, url, description) and siteSearchUrl (price list for the query). Cite the pages and give the links UNCHANGED. Set "language" to the user's language.
    ConnectorNo auth
  • Shows the creator's Creator Brain, the verified brief every draft uses: identity, audience, offers, proof, stories, content pillars (with the pillar ids library tags use), voice rules and words to avoid, plus its status and the documents it is built from. Without brief_id it shows the active Brain; pass the brief_id from build_creator_brain to review a new build before activate_creator_brain. For the profile basics use get_creator_profile. Returns brief_id, version and status (building, draft, active, archived or failed). Uses no credits.
    ConnectorOAuth
  • 한국 여행 안내·관광 통계 (Korea Basics): Build one link from ids returned by the other tools (the `saveToMyKorea` field of their results: rules and guides, places, events, tool cards). Use it at the end of a trip-planning conversation, or whenever the user wants to keep what came up. Opening it shows the collection on Korea Basics, where the user can tap to save items to My Korea and manage them before the trip (changes to saved rules, own schedule, calendar). Nothing is saved until the user does it on the site. Takes up to 10 items (rules, guides, collections, events, tool cards) and 90 places; rules needed before departure are kept first.
    ConnectorNo auth
  • Find templates in the Control Plane Template Catalog: databases, caches, queues, search, storage, gateways, AI, analytics, auth, security, automation, observability, developer tools, and self-hosted products. Pass `query` naming the capability or product needed ("vector database for RAG", "uptime monitoring with status page", "self-hosted Google Analytics"); when the user describes a goal or problem instead, decide the capability it needs and search for that. Results are ranked, each with a confidence, what must exist before install, and the template to pick instead for other needs. Omit `query` to list the catalog or one `category`. An app the user asks you to build, such as a blog, wiki, or shop, is built (plan_app) unless they name a template. Then pass the pick as `name` for its prerequisites, README notes, and the EXAMPLE values.yaml to copy for install_template. Postgres, MySQL, MariaDB, MongoDB, and Redis install with `add_database` unless they need a setting it does not take, such as backups.
    ConnectorOAuth
  • [ExoBench server version: 1.4.30] ## ⚠️ EPHEMERAL DATABASE — READ THIS FIRST ⚠️ Each call (and each scalePoint) provisions a fresh database from `schemaTemplate` and DESTROYS it. Tables, data, indexes, and settings from previous calls are GONE. `correlationId` is for tracking only — it does NOT preserve DB state. Pass the FULL `schemaTemplate` (CREATE TABLE + INSERT + INDEX + VACUUM ANALYZE) in EVERY call. If the user expects persistence, tell them ExoBench has none. ExoBench: Benchmark SQL query performance using native data generation (Postgres, SQL Server, or MySQL). Supports Postgres, SQL Server, and MySQL via the `databaseType` parameter (default: POSTGRES). Postgres and SQL Server support GENERATE_SERIES for native data generation. ## ⚠️ MYSQL: the examples below are POSTGRES/SQL-SERVER ONLY. MySQL uses recursive CTEs (NOT generate_series). Its EXTENSIVE patterns + a full multi-table example live in getMcpDocs('benchmark-sql'). Writing a MySQL benchmark? Call getMcpDocs('benchmark-sql') FIRST — do NOT guess MySQL syntax from the Postgres examples below. Generates test data directly inside the database, which is: - 100x faster than benchmarkSqlGeneric (no network round-trips for INSERT statements) - More realistic performance measurements (tests actual database performance, not network+database) - Better for large-scale benchmarks (can handle millions of rows without network bottleneck) IMPORTANT: The server enforces a maximum of 5 scale points per request, and a hard limit of 3 million total rows per scale point (sum of all variable values). Requests exceeding these limits will be rejected with an error. **Cumulative compute budget:** Each request is also bounded by total execution time across all scale points. Scale points at 1M+ rows should generally be run as separate requests. A sweep like `[{"SCALE": 10000}, {"SCALE": 100000}, {"SCALE": 1000000}]` is safe; `[{"SCALE": 1000000}, {"SCALE": 2000000}]` will likely time out and should be split into two calls. If a request fails with a generic execution error, the first thing to try is splitting large scale points into separate calls before assuming a server or schema issue. Additionally, this tool gives you full control over data generation using native SQL, unlike benchmarkSqlGeneric which auto-generates random data. Use this when you need: - Realistic data distributions (skewed, correlated, time-series) - Precise control over foreign key relationships - Complex data patterns that columnConstraints can't express - ANY Postgres or SQL Server benchmarking (it's simply better in every way) CRITICAL (Postgres only): Always end schemaTemplate with VACUUM ANALYZE after INSERTs. For SQL Server: Use UPDATE STATISTICS after INSERTs instead. SQL SERVER EXECUTION PLANS (AUTOMATIC — NO USER ACTION NEEDED): The server automatically prepends SET STATISTICS XML ON to every SQL Server benchmark query. You do NOT need to include it yourself — just write your SELECT. The XML execution plan (equivalent of Postgres's EXPLAIN ANALYZE) is captured automatically and returned in the response's `additions` array with kind="sqlServerPlanXml". Including SET STATISTICS XML ON in your query is harmless (it's idempotent) but unnecessary. You MAY optionally also add SET STATISTICS IO ON and/or SET STATISTICS TIME ON to capture logical-read counts and CPU/elapsed time breakdowns. These surface as additional messages in the response's `additions` array with type="additionalMessage". Example: SET STATISTICS IO ON; SET STATISTICS TIME ON; SELECT * FROM users WHERE created_at > DATEADD(DAY, -30, GETDATE()); Postgres Index Only Scans need an up-to-date visibility map. After bulk INSERTs, the visibility map is empty, forcing heap fetches even with covering indexes (2-4x slower). VACUUM updates the visibility map to mark all rows visible, enabling true index-only scans with zero heap fetches. Production autovacuum maintains this continuously, so VACUUM'd benchmarks represent production reality. Without VACUUM, you're measuring a transient post-bulk-load state. VACUUM ANALYZE adds minimal overhead (1-3 seconds for millions of rows) compared to the INSERT time, and is essential for accurate Index Only Scan benchmarks. ANALYZE updates statistics but NOT the visibility map. Use VACUUM ANALYZE, not just ANALYZE. HOW IT WORKS: 1. Your schemaTemplate contains ${VARIABLE} placeholders 2. Each scalePoint is a map of variable names to values 3. For each scalePoint, the tool substitutes variables, runs the schema, then benchmarks the query SIMPLE EXAMPLE (single variable): schemaTemplate: ```sql CREATE TABLE users (id INT PRIMARY KEY, name TEXT, created_at TIMESTAMP); INSERT INTO users SELECT i, 'user_' || i, NOW() - (i || ' days')::interval FROM generate_series(1, ${SCALE}) i; VACUUM ANALYZE; ``` scalePoints: [{"SCALE": 1000}, {"SCALE": 10000}, {"SCALE": 100000}] query: "EXPLAIN ANALYZE SELECT * FROM users WHERE created_at > NOW() - interval '30 days'" MULTI-TABLE EXAMPLE (multiple variables): schemaTemplate: ```sql CREATE TABLE customers (id INT PRIMARY KEY, tier TEXT); INSERT INTO customers SELECT i, CASE WHEN random() < 0.1 THEN 'gold' ELSE 'regular' END FROM generate_series(1, ${CUSTOMERS}) i; CREATE TABLE orders (id INT PRIMARY KEY, customer_id INT, total NUMERIC); INSERT INTO orders SELECT i, (random() * ${CUSTOMERS})::int + 1, random() * 1000 FROM generate_series(1, ${ORDERS}) i; VACUUM ANALYZE; ``` scalePoints: [ {"CUSTOMERS": 1000, "ORDERS": 5000}, {"CUSTOMERS": 10000, "ORDERS": 50000}, {"CUSTOMERS": 100000, "ORDERS": 500000} ] SKEWED DATA EXAMPLE (reproducing "slow user" scenarios): schemaTemplate: ```sql CREATE TABLE large (key INT PRIMARY KEY, x_key INT, tags TEXT[]); -- 95% of rows have x_key = 1 (extreme skew) INSERT INTO large SELECT i, CASE WHEN i <= (${SCALE} * 0.95)::int THEN 1 ELSE (i % 999) + 2 END, CASE WHEN i % 3 = 0 THEN ARRAY['blah'] ELSE ARRAY['foo'] END FROM generate_series(1, ${SCALE}) i; CREATE INDEX idx_x_key ON large(x_key); VACUUM ANALYZE; ``` SQL SERVER EXAMPLES: SQL Server supports GENERATE_SERIES natively. Do NOT use recursive CTEs for row generation. IMPORTANT SYNTAX DIFFERENCE: SQL Server uses `FROM GENERATE_SERIES(1, N) gs` (table alias only), NOT `FROM GENERATE_SERIES(1, N) AS s(value)` (Postgres-style column aliasing is INVALID). The output column is always named `value` — reference it as `gs.value` or just `value`. SIMPLE SQL SERVER EXAMPLE: schemaTemplate: ```sql CREATE TABLE users (id INT PRIMARY KEY, name NVARCHAR(100), created_at DATETIME2); INSERT INTO users (id, name, created_at) SELECT gs.value, CONCAT('user_', gs.value), DATEADD(DAY, -gs.value, GETDATE()) FROM GENERATE_SERIES(1, ${SCALE}) gs; UPDATE STATISTICS users; ``` scalePoints: [{"SCALE": 1000}, {"SCALE": 10000}, {"SCALE": 100000}] query: "SELECT * FROM users WHERE created_at > DATEADD(DAY, -30, GETDATE())" MULTI-TABLE SQL SERVER EXAMPLE: schemaTemplate: ```sql CREATE TABLE customers (id INT PRIMARY KEY, tier NVARCHAR(20)); INSERT INTO customers (id, tier) SELECT gs.value, CASE WHEN ABS(CHECKSUM(NEWID())) % 10 < 1 THEN 'gold' ELSE 'regular' END FROM GENERATE_SERIES(1, ${CUSTOMERS}) gs; CREATE TABLE orders (id INT PRIMARY KEY, customer_id INT, total DECIMAL(10,2)); INSERT INTO orders (id, customer_id, total) SELECT gs.value, ABS(CHECKSUM(NEWID())) % ${CUSTOMERS} + 1, RAND(CHECKSUM(NEWID())) * 1000 FROM GENERATE_SERIES(1, ${ORDERS}) gs; UPDATE STATISTICS customers; UPDATE STATISTICS orders; ``` scalePoints: [ {"CUSTOMERS": 1000, "ORDERS": 5000}, {"CUSTOMERS": 10000, "ORDERS": 50000}, {"CUSTOMERS": 100000, "ORDERS": 500000} ] ⚠️ FOR MYSQL EXAMPLES (recursive CTEs, cte_max_recursion_depth, ANALYZE TABLE): see getMcpDocs('benchmark-sql'). OUTPUT FORMAT: Returns JSON objects, one per scalePoint: {"scalePoint": {"SCALE": 1000}, "sql": "EXPLAIN ANALYZE...", "output": [...], "runtimeDurationMs": 5} {"scalePoint": {"SCALE": 10000}, "sql": "EXPLAIN ANALYZE...", "output": [...], "runtimeDurationMs": 12} ⚠️ `runtimeDurationMs` includes compile + network + serialization — NOT pure execution time. NEVER compare it across Postgres vs SQL Server vs MySQL. For true query time use: - Postgres: root operator `actual time` in EXPLAIN ANALYZE (e.g. `..59.060` = 59ms) - SQL Server: `QueryTimeStats.ElapsedTime` in plan XML additions (excludes compile) - MySQL: `actual time` in EXPLAIN ANALYZE tree output Use `runtimeDurationMs` only for same-engine scale-point comparisons. WHEN TO USE THIS vs benchmarkSqlGeneric: - ALWAYS use benchmarkSql for Postgres and SQL Server (faster, cheaper, more realistic) - Use benchmarkSqlGeneric ONLY for SQLite (which doesn't support native data generation) - Use benchmarkSql when you need precise control over data distribution - Use benchmarkSql when debugging performance issues that depend on data skew IF THIS TIMES OUT: you get a workerId and a "still running" status — that is NOT a result. You MUST then call the matching results tool (benchmarkSqlResults / benchmarkSqlGenericResults / runSqlResults) with that workerId, repeatedly, until it returns a terminal result. Do NOT end your turn, summarize, or report any findings while a worker is still running. PARTIAL RESULTS: If this call times out (returns a "still running" error with a workerId), the error's `data` field MAY contain partial results (scale points completed so far). These are best-effort and NOT guaranteed — do not depend on their presence.
    ConnectorOAuth
  • The unit tests (code examples) for HMR. Always call `learn-hmr-basics` and `view-hmr-core-sources` to learn the core functionality before calling this tool. These files are the unit tests for the HMR library, which demonstrate the best practices and common coding patterns of using the library. You should use this tool when you need to write some code using the HMR library (maybe for reactive programming or implementing some integration). The response is identical to the MCP resource with the same name. Only use it once and prefer this tool to that resource if you can choose.
    ConnectorNo auth
  • Search the bundled Sugra endpoint catalog by natural-language query. Use this to pick an operation_id. It does not fetch data. Typical loop: 1. search_endpoints(query) -> ranked hits with required_parameters 2. describe_endpoint(operation_id) -> params, request_body_schema, agent_hints 3. call_endpoint(operation_id, params=..., body=...) or fetch_data(query, params=...) Filter with toolset or source only after list_toolsets / list_sources; a misspelled filter is an error, not a silent empty result. Examples: - search_endpoints("US CPI inflation") - search_endpoints("AAPL price", toolset="markets") - search_endpoints("container ship AIS", toolset="network")
    ConnectorNo auth
  • Open an interactive, filterable gallery of ALL of nifra's verified code examples (MCP Apps widget) - for browsing and discovering what exists. NOT for fetching one snippet as text: use nifra_example for that. Pass query to pre-filter; the widget also filters client-side.
    ConnectorNo auth
  • Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Do not call this tool more than 3 times per question. If you know the programming language the user is working in, pass it as `language` so the results match their setup. If the user's project or question names a version of the library (package.json, a lockfile, "Next.js 14"), pass it as `version`. Context7 serves that version's documentation, or the closest version it has, and says which one it served.
    ConnectorNo auth
  • Solo-trial one legal 20-card Pokémon TCG Pocket deck: opening-hand consistency (Basics per opener, Trainer density, how often each card shows up across sampled hands) plus mirror self-play with the deck on both seats (closing speed and first-player bias). Use this to tune a single deck; use simulate_matchup to compare two decks. Takes gameplay card ids, not printing ids.
    ConnectorNo auth
  • Answer a question from the organisation's own databases: run a read-only query against one of its connections — PostgreSQL, MySQL, SQL Server, Redshift, Snowflake, Oracle, BigQuery or Google Sheets, or an uploaded CSV or Excel file made queryable with fastero_create_file_connection (DuckDB) — in that connection's own SQL dialect, and return rows. One SELECT, WITH, EXPLAIN or SHOW statement; a statement that could change data is refused. It returns at most 500 rows and about 100 KB: a larger result comes back cut, with truncated: true and totalRows, so prefer a LIMIT or an aggregate. Where a question involves a business number (revenue, churn, active users…), fastero_get_definitions holds this organisation's own expression for it.
    ConnectorAPI key
  • Save folders (and optionally MySQL/MariaDB databases, dumped with mysqldump) on the server so they can be restored with rollback. Refuses when it would use more than half the free disk. /etc is also saved automatically before changes, at most every 30 minutes.
    ConnectorOAuth