katpyeon
MCP Serverkatpyeonpublic

openai_agent_sdk_mcp

基于 MCP 协议的 OpenAI Agent SDK 应用示例。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

基于 MCP 协议的 OpenAI Agent SDK 应用示例。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

OpenAI Agent SDK MCP Chatbot

This is an example chatbot application using the OpenAI Agent SDK and an MCP (Model Context Protocol) server.

Project Overview

This example demonstrates how to build a chatbot application that integrates an MCP (Model Context Protocol) server using the OpenAI Agent SDK and the fastMCP library. The chatbot provides current time information via the MCP server and integrates web search functionality to answer user queries.

Main Features

  • Interactive UI based on Gradio
  • Provides current time information via the MCP server
  • Natural language processing using the OpenAI Agent SDK
  • Integrated web search functionality

Installation

This project uses Poetry for dependency management.

# Clone the repository
git clone https://github.com/katpyeon/openai_agent_sdk_mcp.git
cd openai_agent_sdk_mcp

# Install dependencies with Poetry
poetry install

Environment Variable Setup

Create a .env file in the project root and set the following variables:

PYTHON_PATH=/path/to/your/python
OPENAI_API_KEY=your_openai_api_key

How to Run

# Run the app in the Poetry environment
poetry run python src/app.py

Project Structure

openai-agent-sdk-mcp/
├── src/
│   ├── app.py              # Main application (Gradio UI)
│   ├── time_mcp_server.py  # MCP server providing time information
│   └── __init__.py
├── tests/                  # Test code
├── .env                    # Environment variables (not included in git)
├── poetry.lock             # Poetry dependency lock file
├── pyproject.toml          # Project metadata and dependencies
└── README.md               # Project documentation

License

MIT


Buy Me A Coffee

Quick Start

1

Clone the repository

git clone https://github.com/katpyeon/openai_agent_sdk_mcp
2

Install dependencies

cd openai_agent_sdk_mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerkatpyeon
Repoopenai_agent_sdk_mcp
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation