Skip to content

Commit ea337a4

Browse files
ptelangclaude
andcommitted
Add comprehensive usage guide for meta-mcp MCP server
This guide documents how to use the meta-mcp server with ToolHive for intelligent tool discovery and unified access to multiple MCP servers. Includes setup instructions along with practical examples and best practices. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f2a5126 commit ea337a4

File tree

1 file changed

+146
-0
lines changed

1 file changed

+146
-0
lines changed
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
---
2+
title: Meta-mcp MCP server guide
3+
sidebar_label: Meta-mcp
4+
description:
5+
Using the meta-mcp server with ToolHive for intelligent tool discovery and
6+
unified MCP server access.
7+
last_update:
8+
author: ptelang
9+
date: 2025-09-18
10+
---
11+
12+
## Overview
13+
14+
The meta-mcp server acts as an intelligent intermediary between AI clients and
15+
multiple MCP servers. It provides tool discovery, unified access to
16+
multiple MCP servers through a single endpoint, and intelligent routing of
17+
requests to appropriate MCP tools.
18+
19+
Key features include:
20+
21+
- **Tool Discovery**: Uses hybrid search (semantic + keyword) to find the right tools for your tasks
22+
- **Unified Access**: Single endpoint to access all your MCP servers without
23+
managing multiple connections
24+
- **Tool Management**: Seamlessly manage large numbers of MCP tools across
25+
different servers
26+
- **Intelligent Routing**: Automatically routes requests to the appropriate MCP
27+
server based on tool requirements
28+
29+
## Metadata
30+
31+
<MCPMetadata name='meta-mcp' />
32+
33+
## Usage
34+
35+
<Tabs groupId='mode' queryString='mode'>
36+
<TabItem value='ui' label='UI' default>
37+
See the next section for details on setup.
38+
</TabItem>
39+
40+
41+
<TabItem value='cli' label='CLI'>
42+
43+
:::info[Prerequisites]
44+
45+
Both of the following are needed.
46+
47+
- ToolHive UI (version >= 0.6.0) must be running for setup
48+
- ToolHive CLI (version >= 0.3.1)
49+
50+
:::
51+
52+
**Step 1: Create a dedicated group and run meta-mcp**
53+
54+
```bash
55+
# Create the meta group
56+
thv group create meta
57+
58+
# Run meta-mcp in the dedicated group
59+
thv run --group meta meta-mcp
60+
```
61+
62+
**Step 2: Configure your AI client for the meta group**
63+
64+
```bash
65+
# Register your AI client with the meta group
66+
thv client setup
67+
68+
# Verify the configuration
69+
thv client list-registered
70+
```
71+
72+
**Step 3: Add MCP servers to the default group**
73+
74+
```bash
75+
# Add MCP servers that you want to access through meta-mcp
76+
thv run github
77+
thv run filesystem
78+
thv run time
79+
80+
# Verify the configuration - meta-mcp should be in 'meta' group, others in 'default'
81+
thv list
82+
```
83+
84+
</TabItem>
85+
</Tabs>
86+
87+
## Sample prompts
88+
89+
Once meta-mcp is configured and running, you can use it with natural language
90+
prompts. The server will automatically discover and route to appropriate tools:
91+
92+
**Direct Task Examples:**
93+
94+
- "Get the details of GitHub issue 1911 from stacklok/toolhive repo"
95+
- "List recent PRs from stacklok/toolhive repo"
96+
97+
**The meta-mcp workflow:**
98+
99+
1. Your AI client sends the request to meta-mcp
100+
2. Meta-mcp uses hybrid search (semantic + keyword) to find relevant tools
101+
across all connected MCP servers
102+
3. Meta-mcp server returns the short list of matching tools to the client
103+
4. Client selects one tool from the short list and uses meta-mcp to call that
104+
tool
105+
5. Results are returned from meta-mcp to the client
106+
107+
## Available tools
108+
109+
The meta-mcp server provides two main tools:
110+
111+
### find_tool
112+
113+
Discovers available tools that match your requirements using hybrid search (semantic + keyword).
114+
115+
**Parameters:**
116+
117+
- `tool_description`: Description of the task or capability needed (e.g., "web
118+
search", "analyze CSV file")
119+
- `tool_keywords`: Space-separated keywords of the task or capability needed
120+
(e.g., "list issues github", "SQL query postgres")
121+
122+
### call_tool
123+
124+
Executes a specific tool with provided parameters after discovery.
125+
126+
**Parameters:**
127+
128+
- `server_name`: Name of the MCP server providing the tool
129+
- `tool_name`: Name of the tool to execute
130+
- `parameters`: Dictionary of arguments required by the tool
131+
132+
## Recommended practices
133+
134+
- **Use descriptive group names**: Keep meta-mcp in a dedicated group to
135+
maintain clean client configurations
136+
- **Regular updates**: Keep both ToolHive and meta-mcp updated for the latest
137+
features and compatibility
138+
139+
:::tip[Best Practice]
140+
141+
Start with a small set of MCP servers in the default group
142+
and gradually add more as you become familiar with meta-mcp's tool discovery
143+
capabilities. This makes it easier to understand which tools are being used for
144+
different tasks.
145+
146+
:::

0 commit comments

Comments
 (0)