Skip to main content
Glama
Gabriel-Maxsy

MCP Car Database

MCP Project

This is a finished project that uses the MCP (Model Context Protocol) protocol for communication between client and server. The project includes creating an SQLite database and implementing a client that queries that database.

Folder structure

📁 mcp-car
│-- 📂 app
│ ├── server.py # MCP server file
│ ├── database.py # Script responsible for creating the database
│-- 📂 client
│ ├── client.py # Main client code where interaction occurs
│-- 📂 useful
│ ├── create_cars.py # Generates dummy data for the database
│-- README.md # Project documentation

How to rotate the project

  1. Create and configure the virtual environment

    • To ensure that all project dependencies are installed correctly, it is recommended to create a virtual environment.

    • At the root of your project, run the following command to create a virtual environment:

      python -m venv venv

      Right away:

      .\venv\Scripts\activate

      So to download the dependencies:

      pip install -r requirements.txt

    • This will install all the libraries the project needs to work properly.

Now you can proceed with the rest of the project configuration, with the virtual environment ready for use.

  1. Create the database

    • Navigate to the app folder.

    • Open the database.py file and run it to create the database in SQLite format inside your "data" folder. This script will create the necessary structure to store the car data.

  2. Populate the database with dummy data

    • Access the utils folder.

    • Open the create_cars.py file and run it to populate the database with 100 fictitious car records. This step is necessary to have data in the database before running the system.

  3. Run the client and query the data

    • With the database filled in, go to the client folder.

    • Run the client.py file to interact with the system. The agent will allow you to enter filters (such as make, model, year, etc.) to search for cars in the database.

Usage example

When running the client ( client.py ), you will be prompted for search criteria, such as:

  • Mark

  • Model

  • Year

  • Color

  • Maximum price

The client will send the query to the server, which will search the database and return the cars that meet the provided criteria.

You can stop searching by typing "exit" at any time.


Contributions

Feel free to explore and modify the project as needed. If you have any questions or would like to suggest improvements, please submit a pull request or contact us.

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    Not graded
    quality
    A
    maintenance
    A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through SQLite. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.
    89,748
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides database interaction capabilities through SQLite, enabling users to run SQL queries, analyze business data, and automatically generate business insight memos.
    19
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.
    3
  • A
    license
    B
    quality
    A
    maintenance
    A Model Context Protocol server that enables SQL operations (SELECT, INSERT, UPDATE, DELETE) and table management through a standardized interface with SQLite databases.
    7
    72
    1
    ISC

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • GibsonAI MCP server: manage your databases with natural language

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gabriel-Maxsy/MCP-Car'

If you have feedback or need assistance with the MCP directory API, please join our Discord server