Content
# MCP Client Demo
This is a client demo project based on Model Context Protocol (MCP) that showcases how to interact with the OpenAI API and MCP tools.
## Project Introduction
This project is a simple command-line application that demonstrates how to:
- Use OpenAI's GPT-4o-mini model
- Handle tool calls and responses
- Connect to the MCP server
- Maintain a complete conversation history
## Tech Stack
- **Runtime**: [Bun](https://bun.sh) - A fast, all-in-one JavaScript runtime
- **Language**: TypeScript
- **Dependencies**:
- `openai`: ^4.87.3 - OpenAI API client
- `@modelcontextprotocol/sdk`: ^1.7.0 - MCP SDK
## Installation
```bash
# Install dependencies
bun install
```
## Usage
```bash
# Run the application
bun run index.ts
```
## Environment Variables
Please ensure to set the following environment variables or create a `.env` file before running:
```
OPENAI_API_KEY=your_openai_api_key
EXA_API_KEY=your_exa_api_key
```
## Development
This project was created using `bun init` in bun v1.1.38. For development, you can modify the user prompts in the `index.ts` file or add more features.
Connection Info
You Might Also Like
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
servers
Model Context Protocol Servers
servers
Model Context Protocol Servers
Time
A Model Context Protocol server for time and timezone conversions.