# Compound V3 > On-chain contract: Compound V3. 5 functions, 3 events. MCP endpoint: https://compound.mcp.junct.dev/mcp Domain: lending Auth: none ## Tools ### admin Calls admin(). Write function — may have access control restrictions (e.g. onlyOwner). Check contract source for modifier requirements before calling. Returns admin_ (address). _No parameters required._ ### changeAdmin Calls changeAdmin(newAdmin: string). Write function — may have access control restrictions (e.g. onlyOwner). Check contract source for modifier requirements before calling. No return value. **Parameters:** - `newAdmin` (string, required): address (Ethereum address, 0x-prefixed). ### implementation Calls implementation(). Write function — may have access control restrictions (e.g. onlyOwner). Check contract source for modifier requirements before calling. Returns implementation_ (address). _No parameters required._ ### upgradeTo Calls upgradeTo(newImplementation: string). Write function — may have access control restrictions (e.g. onlyOwner). Check contract source for modifier requirements before calling. No return value. **Parameters:** - `newImplementation` (string, required): address (Ethereum address, 0x-prefixed). ### upgradeToAndCall Calls upgradeToAndCall(newImplementation: string, data: string). Requires ETH value to be sent with the transaction. Write function — may have access control restrictions (e.g. onlyOwner). Check contract source for modifier requirements before calling. No return value. **Parameters:** - `newImplementation` (string, required): address (Ethereum address, 0x-prefixed). - `data` (string, required): bytes (hex-encoded bytes, 0x-prefixed). ### AdminChanged Event emitted by the contract. Subscribe via log filters. **Parameters:** - `previousAdmin` (string, required): address (Ethereum address, 0x-prefixed). - `newAdmin` (string, required): address (Ethereum address, 0x-prefixed). ### BeaconUpgraded Event emitted by the contract. Indexed fields (filterable): beacon. Subscribe via log filters. **Parameters:** - `beacon` (string, required): address (Ethereum address, 0x-prefixed) (indexed). ### Upgraded Event emitted by the contract. Indexed fields (filterable): implementation. Subscribe via log filters. **Parameters:** - `implementation` (string, required): address (Ethereum address, 0x-prefixed) (indexed). ## Usage Connect to this MCP server at `https://compound.mcp.junct.dev/mcp`. All tools are callable via the MCP protocol. Call `AdminChanged` first to query current state before any write operations. Write operations like `admin` return data or calldata for agent use.