Skip to content

Commit 51f6e04

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 51f6e04

File tree

1 file changed

+149
-0
lines changed

1 file changed

+149
-0
lines changed
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
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+
37+
<TabItem value='ui' label='UI' default>
38+
39+
See the next section for details on setup.
40+
41+
</TabItem>
42+
43+
44+
<TabItem value='cli' label='CLI'>
45+
46+
:::info[Prerequisites]
47+
48+
Both of the following are needed.
49+
50+
- ToolHive UI (version >= 0.6.0) must be running for setup
51+
- ToolHive CLI (version >= 0.3.1)
52+
53+
:::
54+
55+
**Step 1: Create a dedicated group and run meta-mcp**
56+
57+
```bash
58+
# Create the meta group
59+
thv group create meta
60+
61+
# Run meta-mcp in the dedicated group
62+
thv run --group meta meta-mcp
63+
```
64+
65+
**Step 2: Configure your AI client for the meta group**
66+
67+
```bash
68+
# Register your AI client with the meta group
69+
thv client setup
70+
71+
# Verify the configuration
72+
thv client list-registered
73+
```
74+
75+
**Step 3: Add MCP servers to the default group**
76+
77+
```bash
78+
# Add MCP servers that you want to access through meta-mcp
79+
thv run github
80+
thv run filesystem
81+
thv run time
82+
83+
# Verify the configuration - meta-mcp should be in 'meta' group, others in 'default'
84+
thv list
85+
```
86+
87+
</TabItem>
88+
</Tabs>
89+
90+
## Sample prompts
91+
92+
Once meta-mcp is configured and running, you can use it with natural language
93+
prompts. The server will automatically discover and route to appropriate tools:
94+
95+
**Direct Task Examples:**
96+
97+
- "Get the details of GitHub issue 1911 from stacklok/toolhive repo"
98+
- "List recent PRs from stacklok/toolhive repo"
99+
100+
**The meta-mcp workflow:**
101+
102+
1. Your AI client sends the request to meta-mcp
103+
2. Meta-mcp uses hybrid search (semantic + keyword) to find relevant tools
104+
across all connected MCP servers
105+
3. Meta-mcp server returns the short list of matching tools to the client
106+
4. Client selects one tool from the short list and uses meta-mcp to call that
107+
tool
108+
5. Results are returned from meta-mcp to the client
109+
110+
## Available tools
111+
112+
The meta-mcp server provides two main tools:
113+
114+
### find_tool
115+
116+
Discovers available tools that match your requirements using hybrid search (semantic + keyword).
117+
118+
**Parameters:**
119+
120+
- `tool_description`: Description of the task or capability needed (e.g., "web
121+
search", "analyze CSV file")
122+
- `tool_keywords`: Space-separated keywords of the task or capability needed
123+
(e.g., "list issues github", "SQL query postgres")
124+
125+
### call_tool
126+
127+
Executes a specific tool with provided parameters after discovery.
128+
129+
**Parameters:**
130+
131+
- `server_name`: Name of the MCP server providing the tool
132+
- `tool_name`: Name of the tool to execute
133+
- `parameters`: Dictionary of arguments required by the tool
134+
135+
## Recommended practices
136+
137+
- **Use descriptive group names**: Keep meta-mcp in a dedicated group to
138+
maintain clean client configurations
139+
- **Regular updates**: Keep both ToolHive and meta-mcp updated for the latest
140+
features and compatibility
141+
142+
:::tip[Best Practice]
143+
144+
Start with a small set of MCP servers in the default group
145+
and gradually add more as you become familiar with meta-mcp's tool discovery
146+
capabilities. This makes it easier to understand which tools are being used for
147+
different tasks.
148+
149+
:::

0 commit comments

Comments
 (0)