Brand MCP Server
Enables Claude Desktop to query a PostgreSQL brand database through MCP. Supports local stdio and remote HTTP/SSE deployments with API key authentication for secure database access.
README
Brand MCP Server (Python)
This provides an MCP server for accessing the brand Postgres database using Python.
Setup Instructions (Local)
-
Create a virtual environment and install dependencies:
python -m venv .venv # Windows .venv\Scripts\activate pip install -r requirements.txt -
Configure environment: Copy
.env.exampleto.envand fill in your database credentials:cp .env.example .env -
Claude Desktop Configuration: On Windows, open your Claude configuration file located here:
%APPDATA%\Claude\claude_desktop_config.jsonAdd the following configuration to run the server locally:
{ "mcpServers": { "brand-db": { "command": "C:\\Users\\Mike\\Desktop\\Chumbak MCP\\brand-mcp-server\\.venv\\Scripts\\python.exe", "args": ["-m", "src.server"], "env": { "DB_HOST": "localhost", "DB_PORT": "5432", "DB_NAME": "brand_db", "DB_USER": "postgres", "DB_PASS": "password", "PYTHONPATH": "C:\\Users\\Mike\\Desktop\\Chumbak MCP\\brand-mcp-server" } } } }
EC2 Deployment (Ubuntu)
If you are deploying this MCP server to an Ubuntu EC2 instance (e.g. Ubuntu 22.04 or 24.04), follow these steps to securely configure the server using the FastAPI implementation (src/server2.py).
1. Update and Install Dependencies
SSH into your EC2 instance and run the following commands to install Python 3 and Git:
sudo apt update && sudo apt upgrade -y
sudo apt install git python3 python3-pip python3-venv -y
2. Clone the Repository
git clone https://github.com/MiKecantdothis/MCPforGBL.git
cd MCPforGBL
3. Setup Virtual Environment & Install Packages
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
4. Create your Environment Variables
Since your secrets are safely .gitignore'd, you must create the .env file manually on the EC2 instance:
nano .env
(Paste your database credentials inside, save with Ctrl+O, Enter, and exit with Ctrl+X.)
5. Run the Server (HTTP/SSE)
To start the FastAPI HTTP server and keep it running in the background even after you close your SSH connection, use nohup:
nohup python3 -m src.server2 > server.log 2>&1 &
Note: Your FastAPI server will now be accessible via your EC2 instance's IP on port 8000. Important: Make sure you edit your instance's Security Group in the AWS console to allow Inbound TCP traffic on Port 8000.
6. Generate an API Key (for HTTP/SSE)
To secure your remote HTTP/SSE server, it requires valid API keys (src/server2.py).
Run the auth module to generate a strong key and save it to api_keys.json:
python3 -m src.auth generate "ClientName"
7. Connect Claude Desktop to EC2
If you exposed Port 8000 publicly over HTTP/SSE, update %APPDATA%\Claude\claude_desktop_config.json on Windows to pass your generated key in the headers:
{
"mcpServers": {
"brand-db-remote": {
"command": "C:\\Program Files\\nodejs\\npx.cmd",
"args": [
"-y",
"mcp-remote",
"http://YOUR-EC2-PUBLIC-IP:8000/sse",
"--allow-http",
"--header",
"Authorization: Bearer YOUR_GENERATED_KEY"
]
}
}
}
If you prefer not to expose Port 8000 publicly and want Claude Desktop to communicate securely via SSH to your newly launched EC2 instance, use the standard stdio configuration.
Open %APPDATA%\Claude\claude_desktop_config.json on your Windows machine and add:
{
"mcpServers": {
"brand-db-remote": {
"command": "ssh",
"args": [
"-i", "C:/path/to/your/ec2-key.pem",
"ubuntu@YOUR-EC2-PUBLIC-IP",
"cd /home/ubuntu/MCPforGBL && source .venv/bin/activate && python3 -m src.server"
]
}
}
}
(This setup seamlessly securely tunnels Claude's requests via SSH directly into your EC2's standard input/output server!)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。