Skip to content

en How to Create SQL Query Optimizer Using MCP

Alexandre edited this page Jul 20, 2026 · 5 revisions

How to create SQL Query Optimizer using MCP

Optimize slow SQL queries for performance. This guide creates the SQL Query Optimizer prompt from Arthur's template catalog, sets up a blank MCP server, and links the prompt so any connected AI client can use it.

Steps

  1. Go to Prompt Templates and search for SQL Query Optimizer.

    Open the Prompt Templates catalog.

    Open the Prompt Templates catalog

    Search the catalog for the SQL Query Optimizer template.

    Search the catalog for the SQL Query Optimizer template

  2. Click Use template on the SQL Query Optimizer card and review the prefilled name, description, and content preview.

    Open the SQL Query Optimizer template with its prefilled name and content preview.

    Open the SQL Query Optimizer template with its prefilled name and content preview

    Create the SQL Query Optimizer prompt in the shared library.

    Create the SQL Query Optimizer prompt in the shared library

  3. Click Create prompt — the prompt is added to your shared library.

    Start creating the MCP server that will expose the prompt.

    Start creating the MCP server that will expose the prompt

  4. Go to New server, choose Blank / Static as the source, and click Next.

    Choose the Blank / Static source — no external connection is needed for a prompt-only server.

    Choose the Blank / Static source — no external connection is needed for a prompt-only server

    Advance to the server details step.

    Advance to the server details step

    Name the server after the prompt it will expose.

    Name the server after the prompt it will expose

    Create the blank MCP server.

    Create the blank MCP server

    Open the server's Prompts tab.

    Open the server's Prompts tab

  5. Name the server (for example, SQL Query Optimizer Server) and click Create server.

    Open the prompt-library picker.

    Open the prompt-library picker

  6. On the server's Prompts tab, click Add prompt, search for SQL Query Optimizer, and click Add.

    Search the library for the SQL Query Optimizer prompt.

    Search the library for the SQL Query Optimizer prompt

    Link the SQL Query Optimizer prompt to the server.

    Link the SQL Query Optimizer prompt to the server

    Close the picker and show the linked prompt on the Prompts tab.

    Close the picker and show the linked prompt on the Prompts tab

  7. Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.

    Open the server's Connect section, where the MCP endpoint and its documentation live.

    Open the server's Connect section, where the MCP endpoint and its documentation live

    Open the MCP swagger documentation share panel.

    Open the MCP swagger documentation share panel

    Show the generated swagger documentation link and QR code for this server.

    Show the generated swagger documentation link and QR code for this server

Confirm it worked

The SQL Query Optimizer prompt appears on the server's Prompts tab, and the Connect section offers the server's MCP swagger documentation — a shareable page with setup instructions for any AI client. A connected client can now fetch the prompt through this server.

Good to know

  • Analyzes SQL queries for performance issues and rewrites them with indexing and optimization suggestions.
  • Arguments detected from the template: {{database}}, {{schema}}, {{query}} — callers fill these in when invoking the prompt.
  • Editing the prompt in the shared library updates it on every server where it's linked.

Related

Arthur MCP Wiki

Home


🇬🇧 English

Home · Getting Started · FAQ

⚙️ Features

Servers & Tools

Security & Access

Platform

Operations

Coming Soon

📚 Guides (46)

Connect AI Clients

Security & Access

Harness & Limits

Platform & Operations

Tools, Resources & Prompts

Servers & Import

🔌 API Integrations (230)
AI (28)
Animals (19)
Anime (14)
Anti-Malware (10)
Art & Design (23)
Authentication & Authorization (5)
Blockchain (9)
Books (16)
Business (27)
Calendar (14)
Cloud Storage & File Sharing (10)
Communication (9)
Continuous Integration (5)
Cryptocurrency (2)
Data (15)
Database (3)
Development (8)
E-commerce (5)
Government & Legal (1)
Music & Media (5)
Testing (2)
✨ Prompt Templates (90)
Analysis (6)
Code (9)
Customer Support (6)
Data Extraction (6)
DevOps (5)
Education (5)
Finance (5)
HR & Recruiting (5)
Legal (4)
Product Management (5)
Research (5)
Sales (5)
SEO & Marketing (5)
Social Media (5)
Summarization (6)
Writing (8)
💡 Concepts (37)

Connect AI Clients

Security & Access

Harness & Limits

Platform & Operations

Tools, Resources & Prompts

Servers & Import


🇧🇷 Português

Início · Primeiros Passos · FAQ

⚙️ Funcionalidades

Servidores & Ferramentas

Segurança & Acesso

Plataforma

Operações

Em Breve

📚 Guias (46)

Conectar Clientes de IA

Segurança & Acesso

Harness & Limites

Plataforma & Operações

Ferramentas, Recursos & Prompts

Servidores & Importação

🔌 Integrações de API (230)
AI (28)
Animals (19)
Anime (14)
Anti-Malware (10)
Art & Design (23)
Authentication & Authorization (5)
Blockchain (9)
Books (16)
Business (27)
Calendar (14)
Cloud Storage & File Sharing (10)
Communication (9)
Continuous Integration (5)
Cryptocurrency (2)
Data (15)
Database (3)
Development (8)
E-commerce (5)
Government & Legal (1)
Music & Media (5)
Testing (2)
✨ Templates de Prompt (90)
Analysis (6)
Code (9)
Customer Support (6)
Data Extraction (6)
DevOps (5)
Education (5)
Finance (5)
HR & Recruiting (5)
Legal (4)
Product Management (5)
Research (5)
Sales (5)
SEO & Marketing (5)
Social Media (5)
Summarization (6)
Writing (8)
💡 Conceitos (37)

Conectar Clientes de IA

Segurança & Acesso

Harness & Limites

Plataforma & Operações

Ferramentas, Recursos & Prompts

Servidores & Importação

Clone this wiki locally