
VPS-MCP-Server
Servidor VPS MCP Para Gerencimento de Projetos
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
VPS MCP SERVER - Automação para Servidores MCP
Sistema de automação para configuração de servidores com suporte ao Model Context Protocol (MCP) que permite que assistentes AI (como Cursor AI) gerenciem sua infraestrutura através de comandos em linguagem natural.
🌟 Visão Geral
Este projeto oferece scripts para configurar rapidamente servidores MCP com as seguintes opções:
- Configuração de Servidor Único: Tudo em um só servidor (MCP Server, aplicações, bancos de dados e armazenamento de objetos)
-
Configuração de Dois Servidores:
- Servidor de Aplicações: MCP Server e aplicações
- Servidor de Banco de Dados: MCP Server, bancos de dados (PostgreSQL/MySQL) e armazenamento de objetos
🚀 Instalação Rápida
Servidor Único (Tudo em uma VPS)
curl -fsSL https://raw.githubusercontent.com/LuizBranco-ClickHype/VPS-MCP-SERVER/main/install.sh | bash
Configuração de Dois Servidores (Duas VPS)
Na primeira VPS (Servidor de Aplicações):
curl -fsSL https://raw.githubusercontent.com/LuizBranco-ClickHype/VPS-MCP-SERVER/main/install.sh | bash -s -- --mode app
Na segunda VPS (Servidor de Banco de Dados):
curl -fsSL https://raw.githubusercontent.com/LuizBranco-ClickHype/VPS-MCP-SERVER/main/install.sh | bash -s -- --mode db
💻 Requisitos do Sistema
- Ubuntu 20.04+ ou Debian 11+
- Acesso root ou usuário com privilégios sudo
- Conexão à internet
- Mínimo 2GB RAM (recomendado 4GB)
- 20GB de espaço em disco
🛠 Recursos
Serviços MCP Disponíveis
- VPS MCP Server: Gerenciamento central de infraestrutura
- PostgreSQL MCP: Acesso a banco de dados com suporte a vetores para IA
- Storage MCP: Operações de armazenamento compatível com S3
- Context7 MCP: Acesso a documentação e conhecimento externo
Componentes Integrados
- Docker / Docker Compose: Para containerização dos serviços
- PostgreSQL: Banco de dados com suporte a pgvector para embeddings de IA
- MinIO: Armazenamento de objetos compatível com S3
- Context7: Integração para acesso a documentação e conhecimento externo
Segurança
- Firewall configurado (ufw)
- Tokens de autenticação gerados aleatoriamente
- Comunicação segura entre servidores
- Certificados SSL automáticos (Let's Encrypt) quando configurado com domínio
⚙️ Opções de Configuração
O script de instalação aceita os seguintes parâmetros:
Parâmetro | Descrição | Padrão |
---|---|---|
--mode |
Modo de instalação (single , app , db ) |
single |
--domain |
Domínio para configurar SSL | - |
--email |
Email para certificados Let's Encrypt | - |
--db-type |
Tipo de banco de dados (postgres , mysql ) |
postgres |
--db-host |
Endereço IP do servidor de banco de dados (para modo app ) |
- |
--app-host |
Endereço IP do servidor de aplicações (para modo db ) |
- |
--port |
Porta para o MCP Server | 3000 |
--help |
Exibe ajuda | - |
🌐 Model Context Protocol (MCP)
O Model Context Protocol (MCP) é um protocolo aberto que padroniza como aplicativos fornecem contexto e ferramentas para LLMs. Este projeto implementa servidores MCP que podem ser consumidos pelo Cursor AI e outros clientes compatíveis.
Arquitetura MCP
A implementação neste projeto fornece:
- Transporte stdio: Executa em máquina local e é gerenciado pelo Cursor
- Transporte SSE: Permite execução local ou remota via HTTP
Configurando o Cursor AI
Para conectar o Cursor AI aos servidores MCP:
- Crie uma pasta
.cursor
na raiz do seu projeto - Crie um arquivo
mcp.json
com o seguinte conteúdo (ajuste os IPs conforme necessário):
{
"mcpServers": {
"vps_mcp_server": {
"description": "Servidor MCP unificado para gerenciamento de infraestrutura",
"command": "bash",
"args": [
"./mcp-service.sh",
"--endpoint",
"/api/mcp"
]
},
"postgresql": {
"description": "Acesso a banco de dados PostgreSQL com suporte a vetores",
"command": "bash",
"args": [
"./mcp-service.sh",
"--endpoint",
"/api/postgres"
]
},
"storage": {
"description": "Gerenciamento de armazenamento de objetos S3 compatível",
"command": "bash",
"args": [
"./mcp-service.sh",
"--endpoint",
"/api/storage"
]
},
"context7": {
"description": "Acesso a documentação e conhecimento via Context7",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
}
}
}
📝 Funções Disponíveis
O sistema oferece diversas funções para gerenciamento do servidor:
Gerenciamento MCP
# Listar serviços MCP disponíveis
./mcp-service.sh list
# Verificar status dos serviços MCP
./mcp-service.sh status
# Testar conexão com serviço específico
./mcp-service.sh test-mcp postgresql
# Ver logs de comunicação MCP
./mcp-service.sh logs 20
# Iniciar como servidor MCP
./mcp-service.sh --endpoint /api/mcp
Banco de Dados
# Configurar PostgreSQL com pgvector
./postgres-mcp-setup.sh
# Backup de banco de dados
source common.sh
backup_database
🔍 Diagnóstico e Resolução de Problemas
Se você encontrar problemas:
-
Verifique o status dos serviços MCP:
./mcp-service.sh status
-
Verifique os logs específicos:
./mcp-service.sh logs 50
-
Teste a conexão com serviços específicos:
./mcp-service.sh test-mcp postgresql ./mcp-service.sh test-mcp storage ./mcp-service.sh test-mcp context7
🔧 Implantação em Produção
1. Configuração Inicial do Servidor
-
Atualize o sistema e instale dependências:
apt update && apt upgrade -y apt install -y curl git jq
-
Clone o repositório:
git clone https://github.com/LuizBranco-ClickHype/VPS-MCP-SERVER.git cd VPS-MCP-SERVER
-
Torne o script executável:
chmod +x mcp-service.sh
-
Crie o diretório de logs:
mkdir -p /var/log/vps-mcp touch /var/log/vps-mcp/mcp-communication.log
2. Configuração do Servidor MCP
-
Edite o arquivo
mcp-model.json
para substituirIP_DO_SERVIDOR
pelo seu IP público ou domínio:# Exemplo com sed sed -i 's/IP_DO_SERVIDOR/seu.ip.ou.dominio/g' mcp-model.json
-
Instale dependências NPM:
npm install
-
Configure o firewall para permitir acesso às portas MCP:
# Se estiver usando ufw ufw allow 3000/tcp # Porta MCP principal
3. Configuração para Execução Contínua
-
Crie um serviço systemd para manter o MCP em execução:
cat > /etc/systemd/system/vps-mcp.service << EOF [Unit] Description=VPS MCP Server After=network.target [Service] Type=simple User=root WorkingDirectory=/caminho/para/VPS-MCP-SERVER ExecStart=/bin/bash mcp-service.sh --endpoint /api/mcp Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target EOF
-
Habilite e inicie o serviço:
systemctl enable vps-mcp systemctl start vps-mcp
-
Verifique o status:
systemctl status vps-mcp
🤝 Contribuições
Contribuições são bem-vindas! Para contribuir:
- Faça um fork do repositório
- Crie uma branch para sua feature (
git checkout -b feature/nova-feature
) - Faça commit das suas mudanças (
git commit -m 'Adiciona nova feature'
) - Envie para o GitHub (
git push origin feature/nova-feature
) - Abra um Pull Request
📄 Licença
Este projeto está licenciado sob a Licença MIT
相关推荐
🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.
⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Flock est une plate-forme à faible code de workflow pour construire rapidement des chatbots, un chiffon et coordonner des équipes multi-agents, alimentée par Langgraph, Langchain, Fastapi et NextJs. (Flock 是一个基于 Workflow 工作流的低代码平台 , 用于快速构建聊天机器人、 Rag 、 Agent 和 和 , 采用 采用 采用 采用 Langgraph 、 Langchain 、 Fastapi 和 ,))
PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Reviews

user_dtAZSmEE
I've been using the VPS-MCP-SERVER by LuizBranco-ClickHype and it has exceeded my expectations. The server's performance is exceptional, providing stability and speed that are crucial for my applications. The setup was straightforward and the customer support is always responsive and helpful. Highly recommend this for anyone in need of a reliable VPS solution!

user_bRClJSXq
As a loyal user of the VPS-MCP-SERVER, I am thoroughly impressed with its performance and reliability. Created by LuizBranco-ClickHype, this server offers a seamless experience that perfectly caters to my needs. The intuitive interface and robust support make it a top choice for anyone seeking a dependable server solution. Highly recommended for both beginners and advanced users alike!

user_UXLSaUQ5
I've been using VPS-MCP-SERVER by LuizBranco-ClickHype for a while now and it has significantly improved my project's efficiency. The seamless deployment and robust performance are remarkable. Highly recommended for anyone needing a reliable VPS solution!

user_7cr2o6CZ
I am thoroughly impressed with the VPS-MCP-SERVER by LuizBranco-ClickHype. The setup was seamless, and the server performance is outstanding. It has significantly boosted the efficiency of my applications, and I appreciate the intuitive user interface. This product is a game-changer for anyone serious about their IT infrastructure!

user_bfBEC0ph
I have been using the VPS-MCP-SERVER by LuizBranco-ClickHype for a while now, and it has exceeded all my expectations. The setup process was smooth, and the server's performance is top-notch. It handles my applications effortlessly, providing reliable and fast service. Highly recommended for anyone in need of a robust VPS solution!

user_v5HCgciV
I've been using the VPS-MCP-SERVER by LuizBranco-ClickHype, and it has exceeded all my expectations. The server's performance is top-notch, providing reliable and fast service for my needs. The setup process was straightforward, and the support from ClickHype has been exceptional. Highly recommended for anyone needing a robust VPS solution!

user_npqwbSAo
I have been using the VPS-MCP-SERVER by LuizBranco-ClickHype, and it has transformed my online projects. The setup was seamless and the performance is outstanding. The server is reliable, with excellent uptime and quick response times, fulfilling all my hosting needs. Highly recommended for developers and businesses looking for a robust and efficient server solution!

user_r6BtchR0
I have been using the VPS-MCP-SERVER by LuizBranco-ClickHype, and it has drastically improved my server management experience. The service is reliable, fast, and highly customizable. I appreciate the seamless setup and the efficient performance it offers. This is a must-have for anyone looking to enhance their server capabilities!

user_xm5yHyBE
I've been using VPS-MCP-SERVER by LuizBranco-ClickHype, and it has exceeded my expectations. The setup was straightforward, and the performance significantly improved my workflow. Whether you're managing a small project or a large-scale application, this server delivers reliability and efficiency. Highly recommend for developers seeking robust VPS solutions!