mcp-resources-giulia-ai
MCP server that demonstrates the Resources feature by exposing static and dynamic resources, including contact data and personalized greetings, through MCP.
README
PRJ-03 — Servidor de Resources MCP
Servidor MCP (FastMCP, stdio) que demonstra Resources — a forma padronizada do
MCP expor dados (em vez de tools) para o modelo. Corresponde ao Capítulo 4 do livro
Model Context Protocol (Sandeco).
Resources expostos
| URI | Tipo | Conteúdo |
|---|---|---|
echo://static |
estático | Identidade do agente (nome via AGENT_NAME, default Giulia-ai). |
file://readme |
arquivo | Bytes reais deste README.md. |
file://contatos |
arquivo | CSV de contatos (dados de demonstração). |
contato://{nome} |
template dinâmico | Busca UM contato pelo nome dentro do CSV. |
greeting://{nome} |
template dinâmico | Saudação personalizada. |
Correções em relação ao exemplo do livro: caminhos de arquivo agora são resolvidos via
pathlib relativos à raiz do projeto (antes eram relativos ao diretório de execução e
quebravam), e o CSV correto em data/contatos.csv.
Uso
uv sync
cp .env.example .env # opcional: definir AGENT_NAME
uv run python src/resources_server.py # ou: uv run python src/main.py
Os dados de contato são fictícios (demo). Para um cenário real, aponte CONTATOS_PATH
para um export do seu CRM ou troque o resource por uma consulta a banco/API.
Testes
uv run pytest # 20 testes
Cobrem os três formatos de resource e, principalmente, que os caminhos resolvem a partir da raiz do projeto — rodar de outra pasta não pode quebrar.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.