About MCP Server Demo - ClienteDB
MCP Server Demo - ClienteDB is a sample MCP server that connects SQLite customer data to client-management queries. It is intended as a compact demonstration of searching customer records and counting them.
Key features
- 01Count registered customers
- 02Find customers by partial name
- 03Find customers by neighborhood
Use cases
- 01Check the total number of customer records
- 02Find a customer using part of a name
- 03List customers from a specific neighborhood
MCP support
It exposes SQLite customer lookups as MCP tools, including customer counts and searches by name or neighborhood.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server Demo - ClienteDB
Este é um exemplo de servidor MCP que demonstra a integração com SQLite para gerenciamento de clientes.
Funcionalidades
O servidor oferece as seguintes ferramentas:
contar_clientes(): Retorna o número total de clientes cadastradosbuscar_cliente_por_nome(nome): Busca clientes pelo nome (busca parcial)buscar_clientes_por_bairro(bairro): Busca todos os clientes de um determinado bairro
Como usar
- Crie e ative o ambiente virtual:
# Criar ambiente virtual
python3 -m venv .venv
# Ativar ambiente virtual
# No Windows:
.venv\Scripts\activate
# No macOS/Linux:
source .venv/bin/activate
- Instale as dependências:
pip install -r requirements.txt # instalar no ambiente virtual
python3.12 -m pip install -r requirements.txt --break-system-packages # Instalar máquina física
- Gere os dados de exemplo:
python generate_sample_data.py
- Inicie o servidor MCP:
mcp dev server.py # para usar mcp inspector
mcp install server.py --name "ClientesMCP" # instala o mcp no claude desktop
python mcp_server.py # para usar pelo protocolo sse
Para desativar o ambiente virtual quando terminar:
deactivate
Estrutura do Banco de Dados
A tabela clientes contém os seguintes campos:
- id (INTEGER, PRIMARY KEY)
- nome (TEXT)
- email (TEXT)
- telefone (TEXT)
- bairro (TEXT)
- endereco (TEXT)
Bairros Disponíveis
Os dados de exemplo incluem clientes nos seguintes bairros:
- Centro
- Jardim América
- Vila Nova
- Bela Vista
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.