Submit

SQLite Database Demo

@anhnx000

Some examples to build server, client test in model context protocol. Một số ví dụ sử dụng MCP
Overview

what is SQLite Database Demo?

SQLite Database Demo is a project that demonstrates the usage of SQLite database with asynchronous support in a FastMCP application.

how to use SQLite Database Demo?

To use the SQLite Database Demo, clone the repository, install the required dependencies, and start the server using the command python server.py. The database will be automatically initialized with sample data on the first run.

key features of SQLite Database Demo?

  • Async SQLite database operations using aiosqlite
  • Automatic database initialization with sample data
  • Type-safe database context management
  • Proper connection lifecycle handling

use cases of SQLite Database Demo?

  1. Building server-client applications with database support.
  2. Demonstrating async database operations in Python.
  3. Learning how to manage database connections in a FastMCP application.

FAQ from SQLite Database Demo?

  • What is required to run this project?

You need Python 3.7+ and pip to install the dependencies.

  • How do I modify the database schema?

You can edit the _init_db() method in database.py to change the schema or add new tables.

  • What libraries are used in this project?

The project uses aiosqlite for async database operations, along with pandas and numpy for data manipulation.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.