Skip to content

Add MCP Discovery example - Agent tool discovery #358

@yksanjo

Description

@yksanjo

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 scores

Links

Happy to write the full cookbook example if you're interested!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions