Back to MCP Catalog

Upsonic AI Agent Framework MCP Server

Developer ToolsPython
A reliable AI agent framework with MCP support

Upsonic is a comprehensive AI agent framework designed to provide reliable and efficient integration with the Model Context Protocol (MCP). It offers a robust set of tools for building, deploying, and managing AI agents with seamless communication between models and external tools. The framework features advanced configuration management, error tracking through Sentry integration, and flexible server deployment options. Upsonic's architecture supports both client and server components, making it ideal for developers looking to create sophisticated AI applications with enhanced capabilities beyond standard LLM interactions.

Getting Started with Upsonic

Upsonic is a powerful AI agent framework that fully supports the Model Context Protocol (MCP), allowing you to build sophisticated AI applications with enhanced capabilities.

Installation

You can install Upsonic using pip:

pip install upsonic

For server functionality, you'll need to install the optional dependencies:

pip install "upsonic[server]"

Setting Up the Upsonic Server

Upsonic provides two main server components:

  1. Main Server: Handles core functionality and client requests
  2. Tools Server: Manages tool execution and integration

To run the main server:

from upsonic.server import run_main_server

run_main_server()

To run the tools server:

from upsonic.server import run_tools_server

run_tools_server()

By default, the servers run on localhost with predefined ports, but you can configure these settings as needed.

Using the Upsonic Client

The client component allows you to interact with AI models through the MCP protocol:

from upsonic import UpsonicClient

client = UpsonicClient()
response = client.call("Your prompt here")
print(response)

Configuration Management

Upsonic includes a robust configuration system that allows you to store and retrieve settings:

from upsonic.storage import Storage

# Initialize storage
storage = Storage()

# Set configuration values
storage.set_config("api_key", "your-api-key")

# Retrieve configuration values
api_key = storage.get_config("api_key")

Error Tracking and Monitoring

Upsonic integrates with Sentry for error tracking and monitoring:

# Sentry is automatically configured if you provide a DSN
storage.set_config("sentry_dsn", "your-sentry-dsn")

Advanced Usage

For more advanced scenarios, Upsonic supports custom tool development and integration with various AI models. You can extend the framework by creating your own tools and registering them with the tools server.

Troubleshooting

If you encounter issues with the server connection, you can check the server status:

import httpx

async def check_status():
    async with httpx.AsyncClient() as client:
        response = await client.get("http://localhost:8000/status")
        return response.json()

For more detailed information and advanced usage scenarios, refer to the official documentation at docs.upsonic.ai.

Related MCPs

Apple Shortcuts
Developer ToolsJavaScript

Control Apple Shortcuts automations from AI assistants

Clojars Dependency Lookup
Developer ToolsJavaScript

Fetch dependency information from Clojars, the Clojure community's artifact repository

Simple Timeserver
Developer ToolsPython

Provides Claude with current time and timezone information

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.