openai-tool2mcp
๐ ํ์ด ์ฃผ๋ค
๐ ๋น๋ ์ํ
๐ ์ฝ๋์ฝ๋ธ
๐ ํ๋ ์ปค๋ฐ
๐ ํนํ
openai-tool2mcp๋ OpenAI์ ๊ฐ๋ ฅํ ๋ด์ฅ ๋๊ตฌ๋ฅผ ๋ชจ๋ธ ์ปจํ ์คํธ ํ๋กํ ์ฝ(MCP) ์๋ฒ๋ก ๋ํํ๋ ๊ฐ๋ฒผ์ด ์คํ์์ค ๋ธ๋ฆฟ์ง์ ๋๋ค. ์ด๋ฅผ ํตํด Claude ๋ฐ ๊ธฐํ MCP ํธํ ๋ชจ๋ธ๊ณผ ํจ๊ป ์น ๊ฒ์ ๋ฐ ์ฝ๋ ์ธํฐํ๋ฆฌํฐ์ ๊ฐ์ ๊ณ ํ์ง OpenAI ๋๊ตฌ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๐ Claude ์ฑ์์ OpenAI์ ๊ฐ๋ ฅํ ์น ๊ฒ์์ ์ฌ์ฉํ์ธ์
๐ป MCP ํธํ LLM์์ ์ก์ธ์ค ์ฝ๋ ์ธํฐํ๋ฆฌํฐ ๊ธฐ๋ฅ
๐ OpenAI์ MCP ๊ฐ์ ์ํํ ํ๋กํ ์ฝ ๋ณํ
๐ ๏ธ ๊ฐํธํ ํตํฉ์ ์ํ ๊ฐ๋จํ API
๐ MCP SDK์ ์๋ฒฝํ ํธํ์ฑ
๐ Claude ์ฑ๊ณผ OpenAI ๊ฒ์ ํตํฉ ๋ฐ๋ชจ! ๐
https://github.com/user-attachments/assets/f1f10e2c-b995-4e03-8b28-61eeb2b2bfe9
OpenAI๋ ๊ฐ๋ ฅํ๊ณ LLM์ ์ต์ ํ๋ ๋๊ตฌ๋ฅผ ์์ฒด ์์ด์ ํธ ํ๋ซํผ ๋ด์ ๋ฌถ์ด๋๋ ค๊ณ ํ์ง๋ง, ๋ฉ์ถ ์ ์๋ MCP์ ์คํ ์์ค ์ด๋์ ๋ง์ ์๋ ์์์ต๋๋ค!
Related MCP server: OpenAI Agents MCP Server
๊ฐ๋ฐ์์ ๋๋ ๋ง
AI ๊ฐ๋ฐ์๋ค์ ํ์ฌ ๋ ๊ฐ์ง ์ํ๊ณ ์ค์์ ์ด๋ ค์ด ์ ํ์ ํด์ผ ํฉ๋๋ค.
์ง์์คํผ1
openai-tool2mcp๋ ๊ฐ๋ฐฉํ MCP ์ํ๊ณ ๋ด์์ OpenAI์ ์ฑ์ํ๊ณ ๊ณ ํ์ง์ ๋๊ตฌ๋ฅผ ์ฌ์ฉํ ์ ์๋๋ก ํ์ฌ ์ด๋ฌํ ๊ฒฉ์ฐจ๋ฅผ ํด์ํฉ๋๋ค.
๐ ํน์ง
๊ฐํธํ ์ค์ : ๋ช ๊ฐ์ง ๊ฐ๋จํ ๋ช ๋ น์ผ๋ก ์์ ๋ฐ ์คํ
MCP ์๋ฒ๋ก์์ OpenAI ๋๊ตฌ : ๊ฐ๋ ฅํ OpenAI ๋ด์ฅ ๋๊ตฌ๋ฅผ MCP ํธํ ์๋ฒ๋ก ๋ํ
์ํํ ํตํฉ : Claude ์ฑ ๋ฐ ๊ธฐํ MCP ํธํ ํด๋ผ์ด์ธํธ์ ํจ๊ป ์๋ํฉ๋๋ค.
MCP SDK ํธํ : ๊ณต์ MCP Python SDK ์ฌ์ฉ
๋๊ตฌ ์ง์ :
๐ ์น ๊ฒ์
๐ป ์ฝ๋ ์ธํฐํ๋ฆฌํฐ
๐ ์น ๋ธ๋ผ์ฐ์
๐ ํ์ผ ๊ด๋ฆฌ
์คํ ์์ค : MIT ๋ผ์ด์ ์ค, ํดํน ๋ฐ ํ์ฅ ๊ฐ๋ฅ
๐ ์ค์น
# Install from PyPI
pip install openai-tool2mcp
# Or install the latest development version
pip install git+https://github.com/alohays/openai-tool2mcp.git
# Recommended: Install uv for better MCP compatibility
pip install uvํ์ ์กฐ๊ฑด
ํ์ด์ฌ 3.10+
Assistant API์ ์ก์ธ์คํ ์ ์๋ OpenAI API ํค
(์ถ์ฒ) MCP ํธํ์ฑ์ ์ํ uv ํจํค์ง ๊ด๋ฆฌ์
๐ ๏ธ ๋น ๋ฅธ ์์
OpenAI API ํค๋ฅผ ์ค์ ํ์ธ์ :
export OPENAI_API_KEY="your-api-key-here"OpenAI ๋๊ตฌ๋ก MCP ์๋ฒ๋ฅผ ์์ํฉ๋๋ค .
# Recommended: Use uv for MCP compatibility (recommended by MCP documentation)
uv run openai_tool2mcp/server_entry.py --transport stdio
# Or use the traditional method with the CLI
openai-tool2mcp start --transport stdioClaude for Desktop๊ณผ ํจ๊ป ์ฌ์ฉ :
claude_desktop_config.json์ ํธ์งํ์ฌ Claude for Desktop์ด ์๋ฒ๋ฅผ ์ฌ์ฉํ๋๋ก ๊ตฌ์ฑํ์ธ์.
{
"mcpServers": {
"openai-tools": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/your/openai-tool2mcp",
"run",
"openai_tool2mcp/server_entry.py"
]
}
}
}๊ตฌ์ฑ ํ์ผ์ ๋ค์ ์์น์ ์์ต๋๋ค.
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json์๋์ฐ:
%AppData%\Claude\claude_desktop_config.json
๐ป ์ฌ์ฉ ์์
๊ธฐ๋ณธ ์๋ฒ ๊ตฌ์ฑ
# server_script.py
from openai_tool2mcp import MCPServer, ServerConfig, OpenAIBuiltInTools
# Configure with OpenAI web search
config = ServerConfig(
openai_api_key="your-api-key",
tools=[OpenAIBuiltInTools.WEB_SEARCH.value]
)
# Create and start server with STDIO transport (for MCP compatibility)
server = MCPServer(config)
server.start(transport="stdio")MCP์์ ๊ถ์ฅํ๋ ๋๋ก uv ๋ก ์คํํ์ธ์.
uv run server_script.pyClaude Desktop์ฉ MCP ํธํ ๊ตฌ์ฑ
๋ ๋ฆฝ ์คํํ ์คํฌ๋ฆฝํธ๋ฅผ ๋ง๋ญ๋๋ค.
# openai_tools_server.py
import os
from dotenv import load_dotenv
from openai_tool2mcp import MCPServer, ServerConfig, OpenAIBuiltInTools
# Load environment variables
load_dotenv()
# Create a server with multiple tools
config = ServerConfig(
openai_api_key=os.environ.get("OPENAI_API_KEY"),
tools=[
OpenAIBuiltInTools.WEB_SEARCH.value,
OpenAIBuiltInTools.CODE_INTERPRETER.value
]
)
# Create and start the server with stdio transport for MCP compatibility
server = MCPServer(config)
server.start(transport="stdio")uv ์ ํจ๊ป ์ด ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ๋๋ก Claude Desktop์ ๊ตฌ์ฑํฉ๋๋ค.
{
"mcpServers": {
"openai-tools": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/your/project/folder",
"run",
"openai_tools_server.py"
]
}
}
}๐ ์๋ ์๋ฆฌ
์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ OpenAI Assistant API์ MCP ํ๋กํ ์ฝ ๊ฐ์ ๋ธ๋ฆฌ์ง ์ญํ ์ ํฉ๋๋ค.
sequenceDiagram
participant Claude as "Claude App"
participant MCP as "MCP Client"
participant Server as "openai-tool2mcp Server"
participant OpenAI as "OpenAI API"
Claude->>MCP: User query requiring tools
MCP->>Server: MCP request
Server->>OpenAI: Convert to OpenAI format
OpenAI->>Server: Tool response
Server->>MCP: Convert to MCP format
MCP->>Claude: Display result๐ MCP SDK ํตํฉ
openai-tool2mcp ๋ ์ด์ MCP SDK์ ์๋ฒฝํ๊ฒ ํธํ๋ฉ๋๋ค. Claude for Desktop ์ฑ๊ณผ ํจ๊ป ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
pip install openai-tool2mcp๋ก ํจํค์ง ์ค์นclaude_desktop_config.json๊ตฌ์ฑํ์ฌ ๋ค์์ ํฌํจํฉ๋๋ค.
{
"mcpServers": {
"openai-tools": {
"command": "openai-tool2mcp",
"args": [
"start",
"--transport",
"stdio",
"--tools",
"retrieval",
"code_interpreter"
]
}
}
}๊ตฌ์ฑ ํ์ผ์ ๋ค์ ์์น์ ์์ต๋๋ค.
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json์๋์ฐ:
%AppData%\Claude\claude_desktop_config.json
๐ค ๊ธฐ์ฌํ๊ธฐ
์ปค๋ฎค๋ํฐ ์ฌ๋ฌ๋ถ์ ์ฐธ์ฌ๋ฅผ ํ์ํฉ๋๋ค! ์ฐธ์ฌ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์ ์ฅ์๋ฅผ ํฌํฌํ์ธ์
๋ก์ปฌ ๋จธ์ ์ ํฌํฌ๋ฅผ ๋ณต์ ํ์ธ์
๊ธฐ๋ฅ์ด๋ ๋ฒ๊ทธ ์์ ์ ์ํ ๋ธ๋์น๋ฅผ ๋ง๋์ธ์
๋ณ๊ฒฝ ์ฌํญ์ ๋ง๋ค๊ณ ์ปค๋ฐํ์ธ์
ํฌํฌ์ ํธ์ ํ๊ณ ํ ๋ฆฌํ์คํธ๋ฅผ ์ ์ถํ์ธ์
๋น์ฌ์ ์ฝ๋ฉ ํ์ค์ ์ค์ํ๊ณ ์๋ก์ด ๊ธฐ๋ฅ์ ๋ํ ํ ์คํธ๋ฅผ ์ถ๊ฐํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.
๊ฐ๋ฐ ์ค์
# Clone the repository
git clone https://github.com/alohays/openai-tool2mcp.git
cd openai-tool2mcp
# Install in development mode
make install
# Run tests
make test
# Run linting
make lint๐ ๋ผ์ด์ผ์ค
์ด ํ๋ก์ ํธ๋ MIT ๋ผ์ด์ ์ค์ ๋ฐ๋ผ ๋ผ์ด์ ์ค๊ฐ ๋ถ์ฌ๋์์ต๋๋ค. ์์ธํ ๋ด์ฉ์ ๋ผ์ด์ ์ค ํ์ผ์ ์ฐธ์กฐํ์ธ์.
๐ ๊ฐ์ฌ์ ๋ง
๋ฐ์ด๋ ๋๊ตฌ์ API๋ฅผ ์ ๊ณตํ๋ OpenAI ํ
๋๊ตฌ ์ฌ์ฉ์ ์ํ ๊ฐ๋ฐฉํ ํ์ค์ ๊ฐ๋ฐํ๋ MCP ์ปค๋ฎค๋ํฐ
์ด ํ๋ก์ ํธ ๊ฐ์ ์ ๋์์ ์ค ๋ชจ๋ ๊ธฐ์ฌ์
โ ๏ธ ํ๋ก์ ํธ ์ํ
์ด ํ๋ก์ ํธ๋ ํ์ฌ ๊ฐ๋ฐ ์ค์ ๋๋ค. ํต์ฌ ๊ธฐ๋ฅ์ ์ ์์ ์ผ๋ก ์๋ํ๋ฉฐ, ์ ๊ธฐ์ ์ธ ์ ๋ฐ์ดํธ์ ๊ฐ์ ์ด ์์ ์์ ์ ๋๋ค. ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด ์ด์ ํธ๋์ปค ์ ์ ์ถํด ์ฃผ์ธ์.
openai-tool2mcp๋ OpenAI ๋๊ตฌ์ ์คํ ์์ค MCP ์ํ๊ณ๋ฅผ ์ฐ๊ฒฐํ๋ ๊ด๋ฒ์ํ MCPortal ์ด๋์ ํฐ๋ธ์ ์ผ๋ถ์ ๋๋ค.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alohays/openai-tool2mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
