This repository provides a client implementation for the Model Context Protocol (MCP) using the OpenAI API, offering real-time communication with MCP servers through a simple interface. This repository provides a
This client implementation is based on the Model Context Protocol (MCP), rewriting the original Anthropic SDK example using the OpenAI SDK. It facilitates communication with MCP servers using the OpenAI API.
git clone <repository-url>
and navigate into it with cd tiny-mcp-client
.pnpm install
.pnpm run build
..env
file in the project root directory: echo "OPENAI_API_KEY=<your-key>" > .env
.<your-key>
with your actual OpenAI API key.Execute the client using: node build/index.js <path-to-mcp-server>
. Replace <path-to-mcp-server>
with the address of your MCP server.
Contributions via Pull Requests and Issues are encouraged.
MIT License
gnosis23/tiny-mcp-client
March 22, 2025
March 23, 2025
TypeScript