mcp-server-duckdb

ktanaka101/mcp-server-duckdb

4.4

mcp-server-duckdb is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.

If you are the rightful owner of mcp-server-duckdb and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities through MCP tools.

Try mcp-server-duckdb with chat:

MCPHub score:4.41

Has a README

Github repo has a README.md.

Has a License

Github repo has license info.

Server can be inspected

View server inspector

Server schema can be extracted

Can get at lease one tool info from the README or server.

Online hosted on MCPHub

Can be automatically deployed by MCPHub.

Has social accounts

Do not have any social accounts.

Claimed by the author or certified by MCPHub

If you are the author, claim authorship

AI Evaluation Report
Total Score: 9/10

The agent demonstrates strong capabilities in executing SQL queries and performing data analysis tasks. It consistently provides accurate, clear, and well-structured responses to complex queries involving data retrieval, aggregation, and statistical calculations. The agent effectively handles tasks such as listing table schemas, retrieving records, calculating statistical information, grouping data, and joining tables. However, the initial inability to verify the database schema without execution is a minor limitation. Overall, the agent's performance is reliable and aligns well with its described capabilities.

  • Test case 1
    Score: 7/10
    Please list all table names in the current DuckDB database and return the field information for each table (including field names and data types).

    The current DuckDB database contains two tables: departments and employees. Below are the details of each table, including field names and data types.

    Table: Departments

    Field NameData Type
    idINTEGER
    nameVARCHAR
    budgetINTEGER

    Table: Employees

    Field NameData Type
    idINTEGER
    nameVARCHAR
    departmentVARCHAR
    salaryINTEGER

    If you need further information or assistance with these tables, feel free to ask!

  • Test case 2
    Score: 10/10
    Please read all records of the departments table (display all fields: id, name, budget); if the number of records exceeds 10, return only the first 10 rows; also return the total number of records in this table.

    Here are the details from the "departments" table:

    Records (First 10 Rows):

    1. ID: 1, Name: Engineering, Budget: $500,000
    2. ID: 2, Name: Marketing, Budget: $200,000
    3. ID: 3, Name: Sales, Budget: $300,000
    4. ID: 4, Name: HR, Budget: $150,000

    Total Number of Records:

    • Total Records: 4

    Since the total number of records does not exceed 10, all records have been displayed.

  • Test case 3
    Score: 9/10
    Please read the basic statistical information of the salary field in the employees table,and then list all the records and the basic statistical information including the minimum value (MIN), maximum value (MAX), average value (AVG, rounded to 2 decimal places), and total sum (SUM).

    Here is the basic statistical information for the salary field in the employees table, along with a list of all employee records:

    Basic Statistical Information

    • Minimum Salary (MIN): $55,000
    • Maximum Salary (MAX): $80,000
    • Average Salary (AVG): $67,000.00
    • Total Salary (SUM): $335,000

    Employee Records

    IDNameDepartmentSalary
    1Alice JohnsonEngineering$75,000
    2Bob SmithMarketing$65,000
    3Carol DavisEngineering$80,000
    4David WilsonSales$60,000
    5Eve BrownHR$55,000

    This summary provides both the statistical overview of salaries and the individual employee records. If you need further analysis or details, feel free to ask!

  • Test case 4
    Score: 9/10
    Please group the employees table by the department field, and calculate the salary statistics of employees in each department: 1. Total number of employees in the department; 2. Total salary of the department; 3. Average salary of the department (rounded to 2 decimal places); finally, sort by average salary in descending order, and display the department, total number of employees, total salary, and average salary fields.

    Here are the salary statistics grouped by department:

    DepartmentTotal EmployeesTotal SalaryAverage Salary
    Engineering2$155,000$77,500.00
    Marketing1$65,000$65,000.00
    Sales1$60,000$60,000.00
    HR1$55,000$55,000.00

    Summary

    • Engineering has the highest average salary at $77,500.
    • All other departments have only one employee, leading to their average salaries being equal to their total salaries.
  • Test case 5
    Score: 9/10
    Please join the departments table (by the name field) and the employees table (by the department field), and calculate the ratio of "total salary expenditure" to "department budget" for each department (ratio = total salary expenditure / budget * 100%, rounded to 2 decimal places); display the department name, budget, total salary expenditure, and salary budget ratio fields, sorted by ratio in descending order.

    Here are the results of the query showing the ratio of total salary expenditure to department budget for each department:

    Department NameBudgetTotal Salary ExpenditureSalary Budget Ratio (%)
    HR150,00055,00036.67
    Marketing200,00065,00032.50
    Engineering500,000155,00031.00
    Sales300,00060,00020.00

    The data is sorted by the salary budget ratio in descending order.