A composable, ready-to-use MCP toolkit for agents and rapid integration.
Project description
mcpstore
A composable, ready-to-use MCP toolkit for agents and rapid integration.
Features
- Modular MCP service orchestration
- Fast integration for intelligent agents
- Extensible plugin and configuration system
- Built on FastAPI, fastmcp, and httpx
Installation
pip install mcpstore
Quick Start
1. Configure Services (mcp.json)
Edit src/mcpstore/data/mcp.json to configure MCP services, for example:
{
"mcpServers": {
"OfficialDemo": {
"url": "http://127.0.0.1:8000/mcp"
},
"Amap": {
"url": "https://mcp.amap.com/sse?key=YOUR_KEY"
}
}
}
2. Start the API Service
In the project root directory, run:
python -m mcpstore.cli.main api --reload
By default, the service listens on 0.0.0.0:18200. You can customize with --host and --port.
3. Main API Endpoints
All endpoints follow RESTful conventions and support JSON interaction.
Health Check
- GET /health
- Returns the health status of all registered services.
{
"orchestrator_status": "running",
"active_services": 2,
"total_tools": 19,
"services": [
{"name": "OfficialDemo", "url": "http://127.0.0.1:8000/mcp", "status": "healthy", ...},
{"name": "Amap", "url": "https://mcp.amap.com/sse?...", "status": "healthy", ...}
]
}
Service Registration & Configuration
- POST /register: Register a single service
- POST /register/json: Register multiple services
- PUT /register/json: Update multiple services
- GET /register/json: Get current service configuration
Tool Execution
- POST /execute
- Request body:
{
"service_name": "OfficialDemo",
"tool_name": "OfficialDemo_get_current_weather",
"parameters": {"city": "Beijing"}
}
- Response:
{
"result": [
{"type": "text", "text": "Current weather in Beijing: Sunny"}
]
}
Service & Tool Information
- GET /services: List all service names
- GET /tools: List all tool information
- GET /service_info?name=ServiceName: Get details for a specific service
4. Typical Integration
- Integrate with agents, frontends, or automation scripts via RESTful API
- Unified orchestration and health monitoring for multiple services
- Plugin system for custom tools and services
Project Structure
src/mcpstore/
core/ # Core orchestration and management
plugins/ # Plugin system
config/ # Configuration management
data/ # Data and schema files
scripts/ # API and CLI scripts
Contributing
Contributions are welcome! Please open issues or pull requests on GitHub.
License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcpstore-0.1.3.tar.gz.
File metadata
- Download URL: mcpstore-0.1.3.tar.gz
- Upload date:
- Size: 81.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d56473bda2410abf40d10d102033cdc4decd2dbf652b8eecdffce9ebd392bf1e
|
|
| MD5 |
f904dd6c984c8867094f513cc9c3c92b
|
|
| BLAKE2b-256 |
89e146d0c0eae657141d5a406f98f2a7fa808922637740b25b2b46c405cc444b
|
File details
Details for the file mcpstore-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mcpstore-0.1.3-py3-none-any.whl
- Upload date:
- Size: 95.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dae18ed77bca411605f4aea2b12dfeb7923a428cb569354a803ddd347f2f06d9
|
|
| MD5 |
bee1c842202e5648f445467125bcdf8f
|
|
| BLAKE2b-256 |
578f1f5adb0bf501fe8b2b79fc9e325fc52d9b6f930b8b627e36db6867ea18cb
|