Skip to main content

πŸš€ Quickstart

Welcome! This guide will walk you through the basic steps to set up an application with an action, using both the AgentR integration for cloud-based OAuth and credential management, and a local setup using API Key integration.

🟒 Using AgentR Cloud

  1. Sign up at agentr.dev
  2. Visit the Quickstart Guide
  3. Enable required applications at agentr.dev/apps

🏠 Local Setup

Tip: This option is suitable if you are working with an API that uses simple API key authentication and you want to manage it locally.

πŸ“ Prerequisites

  • You have an API key for the service you want to integrate with.

βš™οΈ Steps

  1. Choose a Credential Store:
    • πŸ—οΈ Environment Variable: Store your API key in an environment variable (e.g., MY_SERVICE_API_KEY). This is common and secure.
    • πŸ” Keyring: Use the system’s secure credential storage.
    • πŸ§ͺ Memory: For testing/temporary use only (not persistent).
  2. Choose an Application class: Use a pre-built application or build your own application class.
  3. Configure Integration and Initialize Application (Python):
    from universal_mcp.applications import APIApplication # Or your specific App class
    from universal_mcp.integrations import ApiKeyIntegration
    from universal_mcp.stores import EnvironmentStore, MemoryStore
    from universal_mcp.servers import SingleMCPServer
    
    # Option 2b: Using MemoryStore (for quick testing)
    store_mem = MemoryStore()
    # Manually add the key to the memory store for this example
    # The 'name_in_store' is the key used within the store
    api_key_name_in_store = "MY_APP_API_KEY"
    store_mem.set(api_key_name_in_store, "dummy_api_key_12345") # Replace with your actual key
    
    integration_mem = ApiKeyIntegration(
        name_in_store=api_key_name_in_store, # Key to lookup in the store
        store=store_mem,
    )
    
    app_local_mem = MyApp(name="my-app", integration=integration_mem)
    print(f"Local App '{app_local_mem.name}' initialized. Actions: {app_local_mem.list_tools()}")
    
    mcp = SingleMCPServer(app_local_mem)
    
  4. Create your MCP Server.
  5. Install MCP server: Install MCP server on your favourite client using:
    mcp install
    

Need more help? Check the full documentation or contact support.