MCP Client
The translator that turns an LLM’s tool requests into valid MCP JSON calls and streams results back into the model’s context.
MCP Client
A client sits next to the language model, converting function-call style requests into MCP messages and handling streaming replies. Developers can embed clients in IDE extensions, chatbots, or autonomous agents. :contentReference[oaicite:2]{index=2}
Core Responsibilities
Layer | Duty |
---|---|
Validation | Ensure outgoing JSON matches protocol schema |
Retry logic | Handle transient 5xx/timeout responses |
Streaming | Deliver partial results to the UI as they arrive |
Example Flow
- User asks an agent: “Create a bug ticket.”
- LLM chooses
issue-tracker
tool. - Client packages parameters → sends to the appropriate server.
- Server returns confirmation → client feeds it back into the model context.
Implementation Options
- TypeScript SDK (npm
@mcp/client
) - Python SDK (pip
mcp[client]
)
Related Terms
- MCP Server
- Host