-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Description
Proposal
Add an example showing how agents can dynamically discover MCP servers using MCP Discovery API.
Why this is useful
Currently, agents are limited to pre-configured MCP servers. MCP Discovery enables semantic search across servers, letting agents find the right tool for any task.
Example code
# Example: Agent discovers the best database tool
import requests
response = requests.post(
"https://mcp-discovery-production.up.railway.app/api/v1/discover",
json={"need": "database with authentication", "limit": 3}
)
recommendations = response.json()["recommendations"]
# Returns: Supabase, PostgreSQL, etc. with confidence scoresLinks
- GitHub: https://github.com/yksanjo/mcp-discovery
- npm: https://www.npmjs.com/package/mcp-discovery-api
Happy to write the full cookbook example if you're interested!
Metadata
Metadata
Assignees
Labels
No labels