Multi-Capability Proxy Server
Serves as the foundation of the MCP server, handling HTTP requests and routing them to the appropriate tool implementations.
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., "@Multi-Capability Proxy Serverget all posts from example_tool"
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 (Multi-Capability Proxy) Server
This project implements a simple MCP server using Flask. The server can host multiple "tools," where each tool exposes functionalities by calling external REST APIs.
Project Structure
.
├── mcp_server.py # Main Flask application, loads tools and routes requests
├── config.py # Configuration for tools (e.g., API base URLs)
├── requirements.txt # Python dependencies
├── tools/ # Directory for tool implementations
│ ├── __init__.py # Makes 'tools' a Python package
│ └── example_tool.py # An example tool implementation
└── README.md # This fileRelated MCP server: MCP Server
Setup and Running
Clone the repository (if applicable) or ensure all files are in place.
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRun the server:
python mcp_server.pyThe server will start, by default on
http://127.0.0.1:5001. It will also create thetoolsdirectory and a basicexample_tool.pyif they don't exist upon first run (though they are included in this setup).
Using the MCP Server
The server exposes the following endpoints:
GET /: Lists all available tools and their descriptions.GET /<tool_name>/<action>?param1=value1¶m2=value2: Executes an action for a specific tool using GET. Parameters are passed as query strings.POST /<tool_name>/<action>: Executes an action for a specific tool using POST. Parameters should be sent as a JSON body.
Example: Interacting with example_tool
The example_tool interacts with https://jsonplaceholder.typicode.com.
List available tools:
curl http://127.0.0.1:5001/This will show
example_tooland its available actions.Get all posts (using
example_tool):curl http://127.0.0.1:5001/example_tool/get_postsGet a specific post by ID (using
example_tool):curl http://127.0.0.1:5001/example_tool/get_post_by_id?id=1Create a new post (using
example_tool):curl -X POST -H "Content-Type: application/json" \ -d '{"data": {"title": "My New Post", "body": "This is the content.", "userId": 1}}' \ http://127.0.0.1:5001/example_tool/create_post
Adding New Tools
Create a new Python file in the
tools/directory (e.g.,my_new_tool.py).Implement the
execute(action, params)function:This function will receive the
actionname (string) andparams(dictionary) from the request.It should contain the logic to call the external API based on the action and params.
It must return a JSON-serializable dictionary or list.
Implement the
get_tool_description()function:This function should return a dictionary describing the tool, including its name, a general description, and a dictionary of available actions with their descriptions and parameters. See
tools/example_tool.pyfor a template.
(Optional) Add configuration for your new tool in
config.pyand import it into your tool file.Restart the MCP server. It will automatically detect and load the new tool.
Example structure for a new tool (tools/my_new_tool.py):
import requests
# from config import MY_NEW_TOOL_CONFIG # If you have config
# MY_API_BASE_URL = MY_NEW_TOOL_CONFIG.get("BASE_URL", "default_url_if_any")
def execute(action, params=None):
if params is None:
params = {}
if action == "some_action":
# api_key = params.get("api_key")
# some_id = params.get("id")
# response = requests.get(f"{MY_API_BASE_URL}/endpoint/{some_id}?key={api_key}")
# response.raise_for_status()
# return response.json()
return {"message": f"Action 'some_action' executed with params: {params}"}
elif action == "another_action":
# data_payload = params.get("data")
# response = requests.post(f"{MY_API_BASE_URL}/other_endpoint", json=data_payload)
# response.raise_for_status()
# return response.json()
return {"message": f"Action 'another_action' executed with data: {params.get('data')}"}
else:
return {"error": f"Action '{action}' not found in my_new_tool"}
def get_tool_description():
return {
"name": "My New Tool",
"description": "This tool does new and exciting things.",
"actions": {
"some_action": {
"description": "Performs some action that requires an ID.",
"params": {"id": "string (required)", "api_key": "string (optional)"},
"method": "GET", # Or POST, PUT, DELETE
"path_template": "/endpoint/{id}"
},
"another_action": {
"description": "Performs another action that requires a data payload.",
"params": {"data": "object (required in body)"},
"method": "POST",
"path_template": "/other_endpoint"
}
}
}This provides a flexible way to extend the MCP server's capabilities.
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
- Alicense-qualityDmaintenanceA proxy server that bridges AI agents and external APIs by dynamically translating OpenAPI specifications into standardized MCP tools, enabling seamless interaction without custom integration code.Last updated69MIT
- Flicense-qualityDmaintenanceA Flask-based server that implements Model Context Protocol to enhance LLMs with external tool capabilities via natural language, allowing tools like weather lookup and calculations to be invoked directly in the model's text output.Last updated2
- Alicense-qualityDmaintenanceA modular, extensible FastAPI-based platform that aggregates multiple AI tools and microservices into a unified interface with standardized I/O formats, perfect for frontend integration or LLM system orchestration.Last updated4MIT
- Flicense-qualityDmaintenanceServer that ingests Swagger/OpenAPI specifications and Postman collections, providing just 4 strategic tools that allow AI agents to dynamically discover and interact with APIs instead of generating hundreds of individual tools.Last updated3
Related MCP Connectors
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Universal AI API Orchestrator — 1,554 tools, 96 services. One install.
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
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/hiohio2/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server