MCP cover image

Servidor VPS MCP MCP Para Gerenciamento de Projetos

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:

  1. Configuração de Servidor Único: Tudo em um só servidor (MCP Server, aplicações, bancos de dados e armazenamento de objetos)
  2. 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

Arquitetura MCP

A implementação neste projeto fornece:

  1. Transporte stdio: Executa em máquina local e é gerenciado pelo Cursor
  2. Transporte SSE: Permite execução local ou remota via HTTP

Configurando o Cursor AI

Para conectar o Cursor AI aos servidores MCP:

  1. Crie uma pasta .cursor na raiz do seu projeto
  2. 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:

  1. Verifique o status dos serviços MCP:

    ./mcp-service.sh status
    
  2. Verifique os logs específicos:

    ./mcp-service.sh logs 50
    
  3. 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

  1. Atualize o sistema e instale dependências:

    apt update && apt upgrade -y
    apt install -y curl git jq
    
  2. Clone o repositório:

    git clone https://github.com/LuizBranco-ClickHype/VPS-MCP-SERVER.git
    cd VPS-MCP-SERVER
    
  3. Torne o script executável:

    chmod +x mcp-service.sh
    
  4. 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

  1. Edite o arquivo mcp-model.json para substituir IP_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
    
  2. Instale dependências NPM:

    npm install
    
  3. 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

  1. 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
    
  2. Habilite e inicie o serviço:

    systemctl enable vps-mcp
    systemctl start vps-mcp
    
  3. Verifique o status:

    systemctl status vps-mcp
    

🤝 Contribuições

Contribuições são bem-vindas! Para contribuir:

  1. Faça um fork do repositório
  2. Crie uma branch para sua feature (git checkout -b feature/nova-feature)
  3. Faça commit das suas mudanças (git commit -m 'Adiciona nova feature')
  4. Envie para o GitHub (git push origin feature/nova-feature)
  5. Abra um Pull Request

📄 Licença

Este projeto está licenciado sob a Licença MIT

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • seabiscuit.ai
  • Discover A More Robust Business: Craft tailored value proposition statements, develop a comprehensive business model canvas, conduct detailed PESTLE analysis, and gain strategic insights on enhancing business model elements like scalability, cost structure, and market competition strategies. (v1.18)

  • Carl Oscar Aaro
  • Structured recipes for food and desserts – ingredient lists and step-by-step recipe instructions from any input. Become surprised, try something new or breathe life into grandma's old recipe notebook.

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • langgenius
  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • alibaba
  • Azure
  • 该存储库用于开发Azure MCP服务器,将Azure的功能带给您的代理商。

  • metorial
  • 数百个MCP服务器的容器化版本📡📡

  • caio-moliveira
  • 创建该项目是为了证明我们如何与不同的模型上下文协议(MCP)连接。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • superiorlu
  • 🤖在AI上收集实用的AI存储库,工具,网站,论文和教程。 实用的ai百宝箱百宝箱

    Reviews

    2.8 (9)
    Avatar
    user_dtAZSmEE
    2025-04-23

    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!

    Avatar
    user_bRClJSXq
    2025-04-23

    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!

    Avatar
    user_UXLSaUQ5
    2025-04-23

    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!

    Avatar
    user_7cr2o6CZ
    2025-04-23

    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!

    Avatar
    user_bfBEC0ph
    2025-04-23

    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!

    Avatar
    user_v5HCgciV
    2025-04-23

    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!

    Avatar
    user_npqwbSAo
    2025-04-23

    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!

    Avatar
    user_r6BtchR0
    2025-04-23

    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!

    Avatar
    user_xm5yHyBE
    2025-04-23

    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!