Custom MCP Server
Provides tools for text processing, generation, question answering, and brainstorming using OpenAI's GPT-4o model.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Custom MCP Servergo to cnn.com, screenshot the homepage, and summarize the top story"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Host Server with LLM Integration
A comprehensive Model Context Protocol (MCP) host server that integrates multiple MCP servers with your LLM configuration, featuring Playwright MCP for browser automation and a custom MCP server for LLM-powered tasks.
๐ Features
Custom MCP Host Server: Unified interface for multiple MCP servers
LLM Integration: Uses your existing OpenAI GPT-4o configuration
Playwright MCP Integration: Browser automation capabilities
Interactive User Interface: Command-line interface for easy interaction
Multiple Transport Support: HTTP, SSE, and STDIO transports
Task Orchestration: Complex task execution using available tools and LLM reasoning
Related MCP server: LCBro
๐ Prerequisites
Python 3.10 or higher
Node.js and npm (for Playwright MCP)
OpenAI API key
๐ ๏ธ Installation
1. Clone/Download the Project
# If you have the files, navigate to the directory
cd mcp2. Run Setup Script
python setup.pyThis will:
Install Python dependencies
Install Playwright MCP server
Install Playwright browsers
Create necessary directories
Set up configuration files
3. Configure Environment
# Copy the example environment file
cp .env.example .env
# Edit .env and add your OpenAI API key
# OPENAI_API_KEY=your_actual_api_key_here4. Test Installation
python test_setup.py๐ฏ Usage
Interactive Mode
Start the interactive interface:
python user_interface.py --interactiveAvailable Commands
General Commands
help- Show available commandsstatus- Show system statushistory- Show command historyquit- Exit the application
Playwright Commands
navigate <url>- Navigate to a webpagescreenshot [filename]- Take a screenshotclick <selector>- Click an elementfill <selector> <text>- Fill a form fieldcontent- Get page contentwait <selector>- Wait for elementjs <script>- Execute JavaScriptpdf [filename]- Save page as PDF
LLM Commands
process <text> [task]- Process text with LLMgenerate <topic> [type] [length]- Generate contentanswer <question> [context]- Answer a questionbrainstorm <topic> [num] [category]- Generate ideasformat <data> <from> <to>- Format data between formats
Complex Commands
task <description>- Execute complex task using available toolslist-tools [client]- List available tools
Command Line Mode
Execute single commands:
# Check status
python user_interface.py --command status
# Navigate to a page
python user_interface.py --command navigate --args https://example.com
# Take a screenshot
python user_interface.py --command screenshot --args webpage.png๐ Project Structure
mcp/
โโโ llm_config.py # Your LLM configuration
โโโ mcp_client.py # MCP client implementation
โโโ custom_mcp_server.py # Custom MCP server with LLM tools
โโโ playwright_mcp_config.py # Playwright MCP configuration
โโโ user_interface.py # Interactive user interface
โโโ setup.py # Setup script
โโโ test_setup.py # Test script
โโโ requirements.txt # Python dependencies
โโโ .env.example # Environment variables example
โโโ README.md # This file๐ง Configuration
MCP Server Configuration
The system uses the following MCP servers:
Playwright MCP: Browser automation
{ "command": "npx", "args": ["@playwright/mcp@latest", "--headless", "--isolated"] }Custom LLM MCP: Text processing and generation
{ "command": "python", "args": ["custom_mcp_server.py"] }
Environment Variables
# Required
OPENAI_API_KEY=your_openai_api_key
# Optional
LOG_LEVEL=INFO
NODE_ENV=production
PLAYWRIGHT_BROWSERS_PATH=0๐งช Examples
Browser Automation Example
mcp> navigate https://httpbin.org/html
mcp> screenshot test.png
mcp> content
mcp> pdf webpage.pdfLLM Processing Example
mcp> process "Climate change is a major global challenge" analyze
mcp> generate "renewable energy solutions" article medium
mcp> answer "What is photosynthesis?" "Plants convert sunlight to energy"
mcp> brainstorm "mobile app ideas" 5 businessComplex Task Example
mcp> task "Navigate to a news website, take a screenshot, extract the main headlines, and summarize them"๐ Troubleshooting
Common Issues
Playwright browsers not installed
npx playwright installPython dependencies missing
pip install -r requirements.txtOpenAI API key not set
Check your
.envfileEnsure the key starts with
sk-
Node.js/npm not found
Install Node.js from https://nodejs.org/
Debug Mode
Run with detailed logging:
LOG_LEVEL=DEBUG python user_interface.py --interactiveTesting Individual Components
# Test LLM configuration
python -c "from llm_config import llm; print('LLM OK')"
# Test MCP client
python -c "from mcp_client import MCPClient; print('MCP Client OK')"
# Test Playwright MCP
npx @playwright/mcp@latest --help๐ Integration with Other Systems
Claude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"custom-mcp-host": {
"command": "python",
"args": ["path/to/mcp/user_interface.py", "--interactive"]
}
}
}Cursor Integration
Add to your mcp.json:
{
"mcpServers": {
"custom-mcp-host": {
"command": "python",
"args": ["path/to/mcp/user_interface.py"]
}
}
}๐ API Reference
MCPClient Class
from mcp_client import MCPClient
client = MCPClient(config)
await client.connect()
tools = await client.list_tools()
result = await client.call_tool("tool_name", parameters)PlaywrightMCPController Class
from playwright_mcp_config import PlaywrightMCPController
controller = PlaywrightMCPController()
await controller.initialize()
await controller.navigate_to_page("https://example.com")MCPHostServer Class
from mcp_client import MCPHostServer
host = MCPHostServer()
host.add_client("name", config)
await host.start_clients()
result = await host.execute_command("client", "command", params)๐ค Contributing
Fork the repository
Create a feature branch
Make your changes
Test with
python test_setup.pySubmit a pull request
๐ License
This project is licensed under the MIT License.
๐ Support
For issues and questions:
Check the troubleshooting section
Run the test suite:
python test_setup.pyCheck logs in the
logs/directoryRefer to the FastMCP documentation: https://gofastmcp.com/
๐ Acknowledgments
FastMCP - Python framework for MCP
Playwright MCP - Browser automation
OpenAI - LLM capabilities
Model Context Protocol - Standard protocol
This server cannot be installed
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
- Flicense-quality-maintenanceMCP server enabling LLMs to perform browser tasks via SSE transport, allowing clients like Cursor.ai and Claude to open websites and interact with web content through natural language commands.Last updated1
- Alicense-qualityDmaintenanceA powerful MCP server for browser automation that supports both Playwright and Chrome DevTools Protocol (CDP) with intelligent preprocessing, comprehensive logging, and remote browser management capabilities. Enables users to perform web automation tasks like navigation, content extraction, form interactions, and screenshot capture through natural language.Last updated526MIT
- Alicense-qualityDmaintenanceEnables AI agents to control and automate browser actions through an MCP server deployed on Heroku. Supports programmatic browser automation with natural language tasks across multiple LLM providers.Last updated1MIT
- Alicense-qualityDmaintenanceEnables browser automation through MCP clients like Claude or Cursor, using the client's existing LLM without requiring an additional API key.Last updatedApache 2.0
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
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/sandeepreddygantla/custom_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server