Customized MCP Project – README | MCP Marketplace

✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

Customized MCP Project

This project leverages the mcp library with CLI support and integrates with OpenAI’s API.

Requirements

Make sure to install the required dependencies before running the project:

pip install -r requirements.txt

Usage

  1. Configure your OpenAI API key as an environment variable:

    export OPENAI_API_KEY="your-api-key"
    
  2. Start the MCP server:

    python server.py
    
  3. Use the client to interact with the server:

    python client.py
    
  4. Alternatively, use the orchestrator to query the LLM and tools:

    python main.py
    

Example

Querying the Weather Tool

Run the client and call the get_weather tool:

python client.py

Example interaction:

You: List tools
Assistant: {
  "tools": [
    {
      "name": "get_weather",
      "description": "Get weather for a city",
      "parameters": {
        "city": {
          "type": "string",
          "description": "Name of the city"
        }
      }
    }
  ]
}

You: Call get_weather with {"city": "Beijing"}
Assistant: 北京的天气是晴天

Dependencies

  • openai==1.70.0
  • mcp[cli]==1.6.0

License

This project is licensed under the MIT License.

Featured Templates

View More
Customer service
Multi-language AI Translator
135 646
AI Engineering
Python Bug Fixer
119 1081
AI Assistants
Talk with Claude 3
156 1166
AI Agents
AI Video Generator
249 1348 5.0
Customer service
AI-Powered Product List Manager
147 625

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.