This is an example implementation of the Model Context Protocol SDK's client code with the Vercel AI SDK which simplifies handling an LLM chat in the browser. Check out
- Connect to an MCP server with SSE through the UI ( you can learn more about
creating mcp servers with SSE) - The system automatically discovers available tools
- Ask it to use the tool
# Install dependencies
npm install
# Run the development server
npm run dev
Then go to http://localhost:3000