# Pocket Network MCP for AI Agents AI Agent Connect

> Pocket Network MCP connects your AI agent to decentralized RPC nodes. It lets you query blockchain data, check account statuses, and relay requests across different chains without relying on centralized providers. It's built for developers who need reliable, distributed infrastructure for Web3 applications.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_NZkS1A6ja5nzvTz0qE1N3LaUfMpQIsxuyNFw3TCA/ai-agent-connect
- **Tags:** rpc-nodes, web3-infrastructure, decentralized-api, pokt-network, blockchain-data

## Description

This Connector lets you plug your agent directly into the Pocket Network. Instead of your AI hitting a single, centralized endpoint that might go down or throttle your requests, it can now talk to a distributed network of nodes. You can have your agent check the current state of a blockchain, pull specific block data, or see which nodes are currently handling your application's traffic. If you're building a dApp and need to move data between different chains, this connection lets the agent handle those requests for you. It's a solid way to handle blockchain interaction at scale. You can find this and thousands of other connections in the Vinkius catalog, making it easy to swap out infrastructure as your project grows. Whether you're just trying to see a balance or you're submitting a transaction, this setup gives your agent the keys to decentralized data.

## Tools

### relay_request
Send an RPC request to an external blockchain. This is how your agent talks to different chains through a single point.

### get_session
Pull session details for your application. It shows exactly which nodes are handling your current traffic.

### submit_transaction
Send signed transactions like staking or transfers to the network. This lets your agent execute actual blockchain actions.

### get_account
Pull account details for a specific address. It's the fastest way to check balances or states.

### get_app
Get specific details about an application on the network. Use this to manage your app's connection settings.

### get_block
Fetch specific block details from the Pocket Network. This helps you verify the latest chain data instantly.

### get_node
Retrieve details about a specific node in the network. Use this to check the health of your infrastructure.

## Prompt Examples

**Prompt:** 
```
Check the balance of address 0x123456...
```

**Response:** 
```
I've retrieved the account details for address 0x123456. 

**Account Summary:**
- **Balance:** 5,000 POKT
- **Status:** Unstaked
- **Network:** Pocket Network

Would you like me to check the transaction history for this address as well?
```

**Prompt:** 
```
What is the current block height?
```

**Response:** 
```
I've checked the latest block details on the network.

**Block Information:**
- **Height:** 18,450,210
- **Timestamp:** 2024-05-25T03:57:39Z
- **Status:** Confirmed

Let me know if you need details on a different block height.
```

**Prompt:** 
```
Show me the nodes for my app on Ethereum.
```

**Response:** 
```
Querying your application's session details... 

I found **5 nodes** currently assigned to your application for the Ethereum session. 

**Active Nodes:**
- Node A: 10.0.0.1
- Node B: 10.0.0.2
- Node C: 10.0.0.3
- Node D: 10.0.0.4
- Node E: 10.0.0.5

All nodes are currently reporting a healthy status.
```

## Capabilities

### Query blockchain data
Get specific block details and current chain states instantly.

### Check account balances
Pull live account details and balances for any address.

### Send transactions
Submit signed transactions like staking or transfers to the network.

### Relay cross-chain requests
Send RPC requests to external blockchains through decentralized nodes.

### Inspect node status
Retrieve details about specific nodes to monitor network health.

### Monitor app sessions
Identify which nodes are assigned to your application's session.

## Use Cases

### Verifying transaction confirmation
A developer needs to know if a block was reached. They ask their agent to check the latest block height using get_block.

### Checking wallet balances
A user wants to know their current POKT balance. They ask their agent to pull the live state using get_account.

### Monitoring dApp node health
A dApp owner wants to see which nodes are active for their application. They use get_session to monitor the connection.

### Executing staking actions
A user wants to stake their tokens. They ask their agent to submit a signed transaction using submit_transaction.

## Benefits

- Avoid centralized RPC downtime by using the distributed Pocket Network infrastructure for your agent.
- Reduce the complexity of multi-chain development by using relay_request to hit different chains from one source.
- Get real-time visibility into your app's traffic with get_session and get_node data.
- Automate blockchain actions like staking or transfers directly through submit_transaction.
- Check account states and balances quickly using get_account without manual lookups.
- Manage your dApp's node assignments and app details using get_app for better control.

## How It Works

The bottom line is you get a direct line to decentralized blockchain data without the headache of managing your own infrastructure.

1. Subscribe to the Connector and add your POCKET_NODE_URL to your environment variables.
2. Connect your AI client to the Pocket Network infrastructure.
3. Ask your agent to perform blockchain tasks like checking balances or relaying requests.

## Frequently Asked Questions

**Can Pocket Network MCP help me avoid RPC rate limits?**
Yes. By using a decentralized network of nodes, you avoid the bottlenecks and throttling common with centralized providers, ensuring your agent stays connected.

**How does Pocket Network MCP handle multi-chain requests?**
It uses a relay mechanism that allows your agent to send requests to different blockchains through a single connection, simplifying your dApp's infrastructure.

**Can I use Pocket Network MCP to send transactions?**
Yes, you can use it to submit signed transactions like staking or transfers directly to the network via your AI client.

**How does Pocket Network MCP monitor my dApp's nodes?**
It provides session and node details so you can see exactly which nodes are handling your traffic and whether they are healthy in real-time.

**Is Pocket Network MCP good for Web3 developers?**
It's a primary tool for Web3 developers who need a reliable, decentralized way to query blockchain data and manage multi-chain interactions without extra overhead.

**Can I send requests to other blockchains like Ethereum using this server?**
Yes. Use the `relay_request` tool to send RPC payloads to external chains. You will need to provide the payload, metadata, and session proof.

**How do I check which nodes are currently serving my application?**
You can use the `get_session` tool by providing your App Public Key and the Blockchain ID. It will return the set of nodes assigned to that specific session.

**Is it possible to submit POKT transactions through this interface?**
Yes, the `submit_transaction` tool allows you to send hex-encoded signed transactions directly to the Pocket Network.