Decentralized communication protocol for secure messaging.
## Matrix Chat MCP Server: Decentralized Communication The **Matrix Chat MCP Server** integrates the Matrix protocol into Google Antigravity. This enables building on an open, decentralized communication network with end-to-end encryption and federation across servers. ### Why Matrix MCP? Matrix offers true decentralization: - **Federated**: Connect across servers - **End-to-End Encrypted**: Private by default - **Open Standard**: No vendor lock-in - **Bridging**: Connect to other platforms - **Self-Hosted**: Full data ownership ### Key Features #### 1. Send Messages ```python from nio import AsyncClient client = AsyncClient("https://matrix.example.com", "@bot:example.com") await client.login("password") # Send message await client.room_send( room_id="!room:example.com", message_type="m.room.message", content={ "msgtype": "m.text", "body": "Deployment complete! :rocket:" } ) ``` #### 2. Room Management ```python # Create room response = await client.room_create( name="Project Alpha", topic="Project Alpha discussions", is_direct=False ) # Invite users await client.room_invite(room_id, "@user:example.com") # Set room state await client.room_put_state( room_id, "m.room.topic", {"topic": "Updated topic"} ) ``` #### 3. End-to-End Encryption ```python from nio import AsyncClient, ClientConfig config = ClientConfig( encryption_enabled=True, store_sync_tokens=True ) client = AsyncClient("https://matrix.example.com", "@bot:example.com", config=config) # Encrypted messaging works automatically await client.room_send( room_id="!encrypted:example.com", message_type="m.room.message", content={"msgtype": "m.text", "body": "This is encrypted!"} ) ``` ### Configuration ```json { "mcpServers": { "matrix-chat": { "command": "npx", "args": ["-y", "@anthropic/mcp-matrix"], "env": { "MATRIX_HOMESERVER": "https://matrix.example.com", "MATRIX_USER": "@bot:example.com", "MATRIX_PASSWORD": "password" } } } } ``` ### Use Cases **Privacy-First Chat**: Encrypted team communication. **Federated Bots**: Bots that work across servers. **Bridge Integrations**: Connect to Slack, Discord, etc. The Matrix MCP Server brings decentralized chat to Antigravity.
{
"mcpServers": {
"matrix-chat": {}
}
}