MCP Serve

MCP Serve

Enables natural language management of clients and products via a chat interface, using Gemini LLM and MCP to interact with a SQLite database.

Category
Visit Server

README

MCP Serve

Um assistente de chat que entende linguagem natural e gerencia o cadastro de Clientes e Produtos de um pequeno sistema, usando Gemini (LLM) + MCP (Model Context Protocol) + SQLite.

Em vez de preencher formulários, você conversa:

"Cria um cliente Maria Silva, CPF 123.456.789-00, email maria@email.com" "Quais produtos eu tenho com menos de 10 unidades em estoque?" "Atualiza o preço do Notebook pra 3200"

...e o sistema entende o pedido, executa a ação no banco de dados e confirma o que foi feito.

Como funciona

Vue.js (chat)  →  Backend Bridge (FastAPI)  →  Gemini (decide o que fazer)
                          ↓                              ↓
                   MCP Client  ←──────────────  "chame a tool X"
                          ↓
                   MCP Server (server.py)
                          ↓
                        SQLite
  1. Você escreve um pedido no chat (frontend em Vue.js).
  2. O Backend Bridge (FastAPI) manda essa mensagem pro Gemini, junto com a lista de ações disponíveis (as tools do MCP Server).
  3. O Gemini interpreta o pedido e decide quais ações executar — por exemplo, "chamar a tool criar_cliente com esses dados".
  4. O Bridge executa essa ação no MCP Server, que é quem efetivamente lê e escreve no banco SQLite.
  5. O resultado volta pro Gemini, que formula uma resposta em português, e essa resposta aparece no chat.

Funcionalidades

O MCP Server expõe 10 ações (tools) que o Gemini pode usar:

Clientes (identificados pelo CPF)

  • Criar cliente
  • Listar todos os clientes
  • Buscar cliente por CPF
  • Atualizar dados de um cliente
  • Remover um cliente

Produtos (identificados pelo nome)

  • Criar produto
  • Listar todos os produtos
  • Buscar produto por nome
  • Atualizar preço/estoque de um produto
  • Remover um produto

Estrutura do projeto

mcp-serve/
├── server.py           # MCP Server: define as tools de CRUD
├── database.py          # Schema e conexão com o SQLite
├── requirements.txt      # Dependências do MCP Server
├── bridge/               # Backend que conecta Vue <-> Gemini <-> MCP Server
│   ├── main.py
│   ├── requirements.txt
│   └── .env.example
├── frontend/              # Interface de chat em Vue.js
│   └── src/
├── docs/
│   └── documentacao.md   # Guia técnico: como rodar e testar
└── README.md              # Este arquivo

Stack

  • MCP Server: Python + SDK oficial mcp (FastMCP)
  • Banco de dados: SQLite
  • LLM: Google Gemini (via google-genai), com function calling automático
  • Bridge: FastAPI
  • Frontend: Vue 3 + Vite

Quer rodar na sua máquina?

Veja o passo a passo completo (instalação, configuração da API key do Gemini e como testar) em docs/documentacao.md.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured