drio
Open app

Focus_mcp_sql

Source

A NL2SQL plugin based on FocusSearch keyword parsing, offering greater accuracy, higher speed, and more reliability!

Catalog onlyCatalog onlySTDIO

Overview

Focus_mcp_sql is a natural language to SQL (NL2SQL) plugin that utilizes FocusSearch keyword parsing to convert natural language queries into SQL statements with improved accuracy, speed, and reliability.

To use Focus_mcp_sql, clone the repository from GitHub, build the server using Gradle, and configure it in your Model Context Protocol (MCP) settings. You can then use the provided tools to convert natural language into SQL queries.

  • Two-step SQL generation process for better control over results. - Low hallucination risk due to keyword verification. - Fast and deterministic keyword-to-SQL conversion. - User-friendly for non-technical users.
  1. Converting user queries into SQL for data retrieval.
  2. Assisting non-technical users in generating SQL queries.
  3. Enhancing the accuracy of SQL generation in applications.

Add to your AI client

Use these steps to connect Focus_mcp_sql in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "focus-mcp-sql-focussearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-focus-mcp-sql-focussearch"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "focus-mcp-sql-focussearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-focus-mcp-sql-focussearch"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "focus-mcp-sql-focussearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-focus-mcp-sql-focussearch"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "focus-mcp-sql-focussearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-focus-mcp-sql-focussearch"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "focus-mcp-sql-focussearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-focus-mcp-sql-focussearch"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "focus-mcp-sql-focussearch": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-focus-mcp-sql-focussearch"
      ]
    }
  }
}

FAQ

What is the advantage of using Focus_mcp_sql over traditional LLM frameworks?

Focus_mcp_sql offers a transparent two-step generation process, reducing hallucination risks and improving user trust in the generated SQL.

Is Focus_mcp_sql free to use?

Yes! Focus_mcp_sql is open-source and available for free on GitHub.

What are the prerequisites for using Focus_mcp_sql?

You need JDK 23 or higher and Gradle 8.12 or higher to build the server.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1664,"uuid":"ec6d1f13-97b4-4dda-9426-ec7d678b5c3b","name":"focus_mcp_sql","title":"Focus_mcp_sql","description":"A NL2SQL plugin based on FocusSearch keyword parsing, offering greater accuracy, higher speed, and more reliability!","avatar_url":null,"created_at":"2025-02-28T00:48:06.349+00:00","updated_at":"2025-03-18T14:51:23.414+00:00","status":"created","author_name":"FocusSearch","author_avatar_url":null,"tags":"nl2sql,sql-generator,focussearch","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/FocusSearch/focus_mcp_sql","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":"7c2c9442-3670-438f-8d0a-4149f22ed041","tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

Focus_mcp_sql — MCP Registry