About Tiny Mcp Client
An MCP client that uses OpenAI API instead of Anthropic API, fully compatible with the Model Context Protocol. Provides real-time communication with MCP servers through a simple interface.
Key features
- 01Uses OpenAI API
- 02MCP protocol compatible
- 03Real-time server communication
- 04Simple and easy-to-use interface
Use cases
- 01Interact with MCP services via OpenAI
- 02Build applications using MCP protocol
MCP support
The client connects to MCP servers and enables communication with LLMs through the MCP protocol using OpenAI API.
Details
From the project READMETiny Mcp Client
This is a client implementation based on the Model Context Protocol (MCP), which rewrites the original example from Anthropic SDK to OpenAI SDK.
Features
- Uses OpenAI API instead of Anthropic API
- Fully compatible with MCP protocol
- Supports real-time communication with MCP server
- Simple and easy-to-use interface
Requirements
- Node.js 16.x or higher
- pnpm package manager
Installation
- Clone the repository:
git clone <repository-url>
cd tiny-mcp-client
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
Configuration
- Create a
.envfile in the project root:
echo "OPENAI_API_KEY=<your-key>" > .env
- Replace
<your-key>with your OpenAI API key
Usage
Run the client:
node build/index.js <path-to-mcp-server>
Where <path-to-mcp-server> is the address of your MCP server.
Contributing
Pull Requests and Issues are welcome!
License
MIT License
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.