Bio Preferred Server
БесплатноНе проверенA Model Context Protocol server that provides AI agents with access to Bio Preferred product data from a PostgreSQL database, enabling product searches, categor
Описание
A Model Context Protocol server that provides AI agents with access to Bio Preferred product data from a PostgreSQL database, enabling product searches, category listings, and contract management via natural language.
README
A Model Context Protocol (MCP) server that provides AI agents with access to Bio Preferred product data from a PostgreSQL database.
🚀 Quick Start
1. Install Dependencies
pip install -r requirements.txt
2. Start the MCP Server
python run_server_simple.py
3. Configure Claude Desktop
Add this configuration to Claude Desktop → Settings → Developer → MCP:
{
"mcpServers": {
"bio-preferred": {
"command": "/Users/ginugeorge/miniconda3/bin/python",
"args": ["/Users/ginugeorge/Report_mcp/run_server_simple.py"],
"name": "Bio Preferred Database",
"description": "Access to Bio Preferred product database with 9 products and 5 categories"
}
}
}
4. Test with Claude
Ask Claude: "What products are in the Bio Preferred database?"
📊 Available Data
- 9 Products: Biodegradable Soap, Plant-Based Degreaser, Soy-Based Paint, etc.
- 5 Categories: Cleaning Agents, Lubricants, Paints & Coatings, Construction Materials, Office Supplies
- 6 Tables: products, product_categories, category_product_map, acquisition, awards, contract_bio_entry
- 4 Acquisition Records: Contract values and funding agencies
🛠️ MCP Tools
The server provides 9 tools for AI agents:
Product & Category Tools
search_products- Search for products by namelist_categories- Show all product categories
Contract Management Tools
list_contract_information- List all contract information including acquisition details, contract values, and funding agencieslist_contracts_with_reports- List contracts that have submitted reports with submission details and report countslist_contracts_without_reports- List contracts that have NOT submitted reports yet
Database Tools
list_tables- List all database tablesget_table_schema- Explore table structureexecute_custom_query- Execute custom SQL queries (read-only)
📁 Project Structure
Report_mcp/
├── 🚀 run_server_simple.py # Main MCP server (Claude-compatible)
├── 🔧 database.py # Database connection and utilities
├── ⚙️ config.py # Configuration management
├── 🏃 run_server.py # Alternative server implementation
├── 🚀 start_for_chatgpt.py # Easy startup script
├── 📦 requirements.txt # Python dependencies
├── 📁 tests/ # Test suite
│ ├── test_all.py # Run all tests
│ ├── test_database_connection.py
│ ├── test_local_mcp.py
│ ├── test_mcp_tools.py
│ └── test_chatgpt_integration.py
└── 📁 docs/ # Documentation
├── CHATGPT_INTEGRATION.md
├── CHATGPT_SETUP_GUIDE.md
├── CONFIGURATION.md
├── TESTING.md
└── mcp_config.json
🧪 Testing
Run All Tests
python tests/test_all.py
Individual Tests
# Test database connection
python tests/test_database_connection.py
# Test MCP server locally
python tests/test_local_mcp.py
# Test ChatGPT integration
python tests/test_chatgpt_integration.py
⚙️ Configuration
The server is pre-configured with:
- Database: biopref (localhost:5432)
- User: ginugeorge
- Schema: public
- Connection Timeout: 10 seconds
- Query Timeout: 30 seconds
No environment variables or additional configuration needed!
🔧 Database Schema
Products Table
id- UUID product identifiername- Product name (e.g., "Biodegradable Soap")
Categories Table
id- UUID category identifiername- Category name (e.g., "Cleaning Agents")
Additional Tables
category_product_map- Links products to categoriesacquisition- Contract values and funding agenciesawards- Award informationcontract_bio_entry- Contract bio entries
💬 Example Claude Conversations
- "Find all soap products in the Bio Preferred database"
- "What categories are available?"
- "Show me the structure of the products table"
- "How many products are in each category?"
🚨 Troubleshooting
Common Issues
"Database connection failed"
- Ensure PostgreSQL is running:
psql -l - Check the
bioprefdatabase exists
- Ensure PostgreSQL is running:
"MCP server not found"
- Verify the Python path in Claude Desktop configuration
- Test locally:
python tests/test_local_mcp.py
"No tools available"
- Check server logs in Claude Desktop
- Run tests to verify functionality
Debug Commands
# Test database connection
python tests/test_database_connection.py
# Test MCP server
python tests/test_local_mcp.py
# Check server status
ps aux | grep python
📚 Documentation
- Claude Desktop Setup - Complete setup guide
- Configuration Details - Configuration reference
- Testing Guide - Comprehensive testing instructions
- Integration Guide - ChatGPT integration details
🎯 Status
✅ Production Ready - All tests passing, optimized for Claude Desktop
Your Bio Preferred MCP server is ready to provide AI agents with access to real product data! 🎉
Установка Bio Preferred Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ginug/Report_mcpFAQ
Bio Preferred Server MCP бесплатный?
Да, Bio Preferred Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Bio Preferred Server?
Нет, Bio Preferred Server работает без API-ключей и переменных окружения.
Bio Preferred Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Bio Preferred Server в Claude Desktop, Claude Code или Cursor?
Открой Bio Preferred Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Bio Preferred Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
