Skip to content

Proposal for Client Examples Repository or Section in MCP Python SDK #93

@3choff

Description

@3choff

Is your feature request related to a problem? Please describe.

While the MCP ecosystem has a dedicated repository for server examples (modelcontextprotocol/servers), there doesn't seem to be a centralized location for sharing client implementations.

This makes it harder for new developers to:

  • Find reference implementations
  • Learn best practices for client development
  • See real-world examples of MCP integration
  • Understand different patterns for tool handling

Describe the solution you'd like

I propose either:

  1. Creating a new modelcontextprotocol/clients repository to showcase different client implementations, similar to the servers repository
  2. Adding a subdirectory in the examples/clients directory in the python-SDK repository for community-contributed client examples.

I have developed a Python chatbot example that demonstrates:

  • Connecting to multiple MCP servers
  • Discovering and executing tools
  • Supporting any OpenAI API-compatible LLM provider
  • Tracking progress and handling capabilities

This example could serve as an initial reference implementation.

Describe alternatives you've considered

  • Including example clients directly in the SDK documentation.
  • Creating a separate repository exclusively for community-contributed client resources.

Additional context

The example CLI chatbot follows the SDK's development guidelines:

  • Uses proper type hints
  • Includes comprehensive docstrings
  • Follows PEP 8 style
  • Implements proper error handling

The code is ready for contribution and can be adjusted to fit any preferred format or additional guidelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions