MCP Chat
MCP Chat
MCP Chat es una aplicación de interfaz de línea de comandos que permite capacidades de chat interactivas con modelos de IA a través de la API de Google Gemini. La aplicación admite recuperación de documentos, indicaciones basadas en comandos e integraciones de herramientas extensibles mediante la arquitectura MCP (Model Control Protocol).
Requisitos previos
Python 3.9+
Google Gemini API Key
Related MCP server: MCP Chat
Configuración
Paso 1: Configurar las variables de entorno
Cree o edite el archivo
.enven la raíz del proyecto y verifique que las siguientes variables estén configuradas correctamente:
GEMINI_API_KEY="" # Enter your Google Gemini API key
GEMINI_MODEL="gemini-3.6-flash" # The Gemini model to usePuede generar una clave de API desde Google AI Studio.
Paso 2: Instalar dependencias
Opción 1: Configuración con uv (Recomendado)
uv es un instalador y resolvedor de paquetes de Python rápido.
Instale uv, si aún no está instalado:
pip install uvCree y active un entorno virtual:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstale las dependencias:
uv pip install -e .Ejecute el proyecto
uv run main.pyOpción 2: Configuración sin uv
Cree y active un entorno virtual:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstale las dependencias:
pip install google-genai python-dotenv prompt-toolkit "mcp[cli]==1.8.0"Ejecute el proyecto
python main.pyUso
Interacción básica
Simplemente escriba su mensaje y presione Enter para chatear con el modelo.
Recuperación de documentos
Use el símbolo @ seguido de un ID de documento para incluir el contenido del documento en su consulta:
> Tell me about @deposition.mdComandos
Use el prefijo / para ejecutar comandos definidos en el servidor MCP:
> /summarize deposition.mdLos comandos se autocompletarán cuando presione Tab.
Desarrollo
Añadir nuevos documentos
Edite el archivo mcp_server.py para añadir nuevos documentos al diccionario docs.
Implementar funciones de MCP
Para implementar completamente las funciones de MCP:
Complete los TODOs en
mcp_server.pyImplemente la funcionalidad que falta en
mcp_client.py
Comprobación de linting y tipado
No hay comprobaciones de lint o tipo implementadas.
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceA command-line interface application for interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.
- FlicenseNot gradedqualityDmaintenanceA command-line interface application enabling interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models via the Anthropic API, supporting document retrieval and command-based prompts through the MCP architecture.
- FlicenseNot gradedqualityCmaintenanceA CLI chat application enabling interactive conversations with AI models via the Anthropic API, with document retrieval and command-based prompt support through the MCP architecture.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/SDias14/mcp-server-training-linkedin-learning'
If you have feedback or need assistance with the MCP directory API, please join our Discord server