
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A TypeScript/Express MCP server offering file operations, API calls, session data management, weather lookups, and image generation, connected to a Google ADK agent through a webhook interface.
MCP server with file, API, session, weather, and image tools is cataloged as an MCP server attributed to ammilam. A TypeScript/Express MCP server offering file operations, API calls, session data management, weather lookups, and image generation, connected to a Google ADK agent through a webhook interface. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server with file, API, session, weather, and image tools are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Each client receives a unique session ID, sessions store user data with a 30-minute expiration, and they are managed using a Map in memory.
README.md · 2892067107eb · Fetched 2026-11-13 13:53:37 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
The system consists of two main components:
The communication flow is:
This guide will help you set up and run the MCP server and Google ADK agent system, including adding new tools to the system.
pip install google-adk)Set up the MCP serve and the Google ADK Agentr:
# run this from the root directory of the project to setup the MCP server and the Google ADK agent
./scripts/setup.sh
gcloud auth application-default login
Configure environment variables:
# Server Configuration
PORT=9000
BASE_DIR=./data
# Repository Access Tokens, allows the MCP server to access private repositories
GITHUB_ACCESS_TOKEN=your_github_token_here
GITLAB_ACCESS_TOKEN=your_gitlab_token_here
# Optional Configuration
REPO_DIR=./repos
MAX_EVENT_LISTENERS=100
GOOGLE_CLOUD_PROJECT="your-google-project-id"
GOOGLE_CLOUD_LOCATION="us-central1"
GOOGLE_GENAI_USE_VERTEXAI="True"
MCP_SERVER_URL=http://localhost:9000
Run MCP Server:
# run this from the root directory of the project to start both the MCP server and the Google ADK agent
./scripts/run-mcp.sh
Run Google ADK Agent:
# run this from the root directory of this repository to start the Google ADK agent
# will start this in web mode
./scripts/run-agent.sh web
# will start this in terminal mode
./scripts/run-agent.sh run
Open the web interface and select mcp_agent:
http://localhost:8000 in browsermcp_agent from the dropdownTest existing tools:
To run the Google ADK agent in Kubernetes, follow these steps:
docker build -t mcp-agent:latest -f mcp_agent/Dockerfile .
# Build and tag the image
gcloud builds submit
--tag $GOOGLE_CLOUD_LOCATION-docker.pkg.dev/$GOOGLE_CLOUD_PROJECT/mcp-agent-repo/mcp-agent:latest
--project=$GOOGLE_CLOUD_PROJECT
.
gcloud artifacts docker images list
$GOOGLE_CLOUD_LOCATION-docker.pkg.dev/$GOOGLE_CLOUD_PROJECT/mcp-agent-repo
--project=$GOOGLE_CLOUD_PROJECT
--format=json
3. **Create a Kubernetes deployment**:
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: mcp-agent
spec:
replicas: 1
selector:
matchLabels:
app: mcp-agent
template:
metadata:
labels:
app: mcp-agent
spec:
serviceAccount: mcp-agent-sa
containers:
- name: mcp-agent
imagePullPolicy: Always
image: us-central1-docker.pkg.dev/your-gar-registry/mcp-agent-repo/mcp-agent:latest
resources:
limits:
memory: "512Mi"
cpu: "500m"
ephemeral-storage: "1Gi"
requests:
memory: "256Mi"
cpu: "250m"
ephemeral-storage: "512Mi"
ports:
- containerPort: 8000
env:
- name: PORT
value: "8000"
- name: GOOGLE_CLOUD_PROJECT
value: "your-google-project-id"
- name: GOOGLE_CLOUD_LOCATION
value: "us-central1"
- name: GOOGLE_GENAI_USE_VERTEXAI
value: "True"
# Use a service name or an external access method for the MCP server
- name: MCP_SERVER_URL
value: "http://mcp-server-service:9000"
volumeMounts:
- name: credentials
mountPath: "/app/credentials"
readOnly: true
volumes:
- name: credentials
secret:
secretName: mcp-agent-credentials
---
apiVersion: v1
kind: Service
metadata:
name: mcp-agent
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8000
selector:
app: mcp-agent
This step-by-step guide will walk through the entire process of adding a new tool to the MCP server and making it available to a Google ADK agent. The guide below will use an image generation tool as our example.
Let's add an image generation tool to the MCP server. We'll go through all required changes step-by-step.
First, let's add the core image generation functionality to the MCP server. Add this to the app.ts file in mcp/app.ts:
// 1. Add new type for ImageGeneration operation
type ImageGenerationOptions = {
prompt: string;
width?: number;
height?: number;
style?: string;
format?: 'png' | 'jpeg' | 'webp';
negativePrompt?: string;
};
// 2. Add the image generation tool implementation
const imageGenerationTool = async (options: ImageGenerationOptions): Promise<{success: boolean; data?: any; error?: string}> => {
try {
// Validate parameters
if (!options.prompt) {
return { success: false, error: 'Image prompt is required' };
}
// Set defaults for missing options
const width = options.width || 512;
const height = options.height || 512;
const format = options.format || 'png';
const style = options.style || 'photorealistic';
console.log(`Generating image for prompt: "${options.prompt}" with style: ${style}, dimensions: ${width}x${height}`);
// For this example, we'll just mock the image generation
// In a real implementation, you would call an API like Stable Diffusion or DALL-E
const mockImageData = {
prompt: options.prompt,
imageUrl: `https://example.com/generated_images/${Date.now()}.${format}`,
width,
height,
style,
format,
generatedAt: new Date().toISOString()
};
// In a real implementation, you might store the image file
// For mock purposes, write a metadata file
const metadataPath = validatePath(`images/metadata_${Date.now()}.json`);
const dir = path.dirname(metadataPath);
await fs.mkdir(dir, { recursive: true });
await fs.writeFile(metadataPath, JSON.stringify(mockImageData, null, 2), 'utf-8');
return {
success: true,
data: mockImageData
};
} catch (error: any) {
console.error('Image generation error:', error);
return {
success: false,
error: error.message || 'Unknown error during image generation'
};
}
};
Add this handler function to the MCP server to process requests from the Google ADK agent:
// Add this to the handler functions section
async function handleImageGenerationTool(parameters: any, sessionId: string) {
// Validate required parameters
if (!parameters.prompt) {
return {
success: false,
error: 'Missing required parameter: prompt'
};
}
// Create options object for the image generation tool
const options: ImageGenerationOptions = {
prompt: parameters.prompt,
width: parameters.width || 512,
height: parameters.height || 512,
style: parameters.style || 'photorealistic',
format: parameters.format || 'png',
negativePrompt: parameters.negativePrompt
};
return await imageGenerationTool(options);
}
Now, add a new case to the switch statement in the /api/adk-webhook route handler:
// Find the switch statement in app.post('/api/adk-webhook', ...)
switch (toolName) {
case 'file_system':
result = await handleFileSystemTool(parameters, mcpSessionId);
break;
case 'api_call':
result = await handleApiTool(parameters, mcpSessionId);
break;
case 'session_data':
result = await handleSessionDataTool(parameters, mcpSessionId);
break;
case 'weather':
result = await handleWeatherTool(parameters, mcpSessionId);
break;
// Add the new case for image generation
case 'image_generation':
result = await handleImageGenerationTool(parameters, mcpSessionId);
break;
default:
result = {
success: false,
error: `Unknown tool name: ${toolName}`
};
}
Add a dedicated endpoint for direct access to the image generation tool:
// Add this route to the app
app.post('/api/session/:sessionId/image', async (req, res) => {
const { sessionId } = req.params;
const session = getSessionAndUpdate(sessionId);
if (!session) {
return res.status(404).json({
success: false,
error: 'Session not found'
});
}
const options: ImageGenerationOptions = req.body;
if (!options.prompt) {
return res.status(400).json({
success: false,
error: 'Image prompt is required'
});
}
const result = await imageGenerationTool(options);
if (result.success) {
// Emit an event for SSE clients
emitEvent(sessionId, 'image-generation', {
imageUrl: result.data.imageUrl,
prompt: options.prompt,
timestamp: new Date().toISOString()
});
res.status(200).json(result);
} else {
res.status(400).json(result);
}
});
Add the new tool to the API documentation in the /api/help endpoint:
// Find the endpoints array in the helpDocs object
endpoints: [
// Add these new entries
{
path: "/api/session/{sessionId}/image",
method: "POST",
description: "Generate an image from a text prompt",
parameters: [
{
name: "sessionId",
in: "path",
required: true,
description: "Session identifier"
}
],
requestBodyExample: {
prompt: "A beautiful sunset over mountains",
width: 512,
height: 512,
style: "photorealistic",
format: "png",
negativePrompt: "blur, low quality"
},
responseExample: {
success: true,
data: {
prompt: "A beautiful sunset over mountains",
imageUrl: "https://example.com/generated_images/1717451623456.png",
width: 512,
height: 512,
style: "photorealistic",
format: "png",
generatedAt: "2025-06-03T12:00:00.000Z"
}
},
curlExample: `curl -X POST ${baseUrl}/api/session/{sessionId}/image \\
-H "Content-Type: application/json" \\
-d '{"prompt": "A beautiful sunset over mountains", "style": "photorealistic"}'`
},
// Add the Google ADK webhook documentation for image_generation tool
{
path: "/api/adk-webhook",
method: "POST",
description: "Webhook for Google ADK image generation",
requestBodyExample: {
session_id: "google-adk-session-123",
tool_name: "image_generation",
parameters: {
prompt: "A beautiful sunset over mountains",
width: 512,
height: 512,
style: "photorealistic"
},
request_id: "request-123"
},
responseExample: {
success: true,
data: {
prompt: "A beautiful sunset over mountains",
imageUrl: "https://example.com/generated_images/1717451623456.png",
width: 512,
height: 512,
style: "photorealistic",
format: "png",
generatedAt: "2025-06-03T12:00:00.000Z"
},
mcp_session_id: "550e8400-e29b-41d4-a716-446655440000",
request_id: "request-123"
},
notes: "This endpoint is used by the Google ADK agent to generate images."
}
],
Now let's add the image generation tool to the Google ADK agent, which is found in mcp_agent.
First, add a new method to the mcp_agent/mcp_toolkit.py file to interact with the image generation tool:
# Add this method to the MCPToolkit class in mcp_toolkit.py
def generate_image(self, prompt: str, width: int = 512, height: int = 512,
style: str = "photorealistic", format: str = "png",
negative_prompt: str = None) -> Dict:
"""Generate an image from a text prompt using the MCP server"""
params = {
"prompt": prompt,
"width": width,
"height": height,
"style": style,
"format": format
}
if negative_prompt:
params["negativePrompt"] = negative_prompt
return self.execute_tool("image_generation", params)
Create a new tool function in tools.py that will be exposed to the ADK agent:
# Add this to the tools.py file
def mcp_generate_image(prompt: str, style: str = "photorealistic", width: int = 512, height: int = 512) -> dict:
"""Generates an image from a text prompt.
Args:
prompt: Text description of the image to generate
style: Style for the image (e.g., photorealistic, cartoon, sketch)
width: Width of the output image in pixels
height: Height of the output image in pixels
Returns:
dict: A dictionary with status ('success' or 'error') and either image info or error message
"""
try:
result = mcp_toolkit.generate_image(
prompt=prompt,
style=style,
width=width,
height=height
)
if result.get("success"):
image_data = result.get("data", {})
return {
"status": "success",
"image_url": image_data.get("imageUrl"),
"message": f"Generated image for prompt: '{prompt}' in {style} style."
}
else:
return {
"status": "error",
"error_message": result.get("error", "Unknown error generating image")
}
except Exception as e:
logger.error(f"Error in mcp_generate_image: {str(e)}")
return {
"status": "error",
"error_message": f"Exception: {str(e)}"
}
Update agent.py file to include the new tool:
# Add to the imports in agent.py
from .tools import (
mcp_read_file,
mcp_write_file,
mcp_list_files,
mcp_delete_file,
mcp_get_weather,
mcp_call_api,
mcp_store_data,
mcp_store_number,
mcp_store_boolean,
mcp_retrieve_data,
mcp_generate_image # Add this import
)
# Update the agent definition
agent = Agent(
name="mcp_agent",
model="gemini-2.0-flash",
description="Agent that can handle weather, time, and interact with a Model Control Protocol server",
instruction="""I can help you with various tasks through my integration with the MCP server.
I can:
- Get current time in different cities
- Check weather conditions in locations
- Read, write, list, and delete files
- Make API calls to external services
- Store and retrieve data in a session (text, numbers, or boolean values)
- Generate images from text descriptions
When you ask me about files, I'll use the appropriate file operation tools.
When you ask me about weather, I'll look up the latest conditions.
When you want to store information for later, I'll use session storage.
When you ask me to create an image, I'll generate one based on your description.
""",
tools=[
# MCP file system tools
mcp_read_file,
mcp_write_file,
mcp_list_files,
mcp_delete_file,
# MCP API tools
mcp_call_api,
mcp_get_weather,
# MCP session tools
mcp_store_data,
mcp_store_number,
mcp_store_boolean,
mcp_retrieve_data,
# New image generation tool
mcp_generate_image # Add this tool
]
)
Test the image generation endpoint directly using cURL:
# First create a session
export SESSION=$(curl -X POST http://localhost:8080/api/session | jq -r '.sessionId')
# Then call the image generation endpoint
curl -X POST http://localhost:8080/api/session/$SESSION/image \
-H "Content-Type: application/json" \
-d '{
"prompt": "A beautiful sunset over mountains",
"style": "photorealistic"
}'
Test the image generation through the ADK webhook:
curl -X POST http://localhost:8080/api/adk-webhook \
-H "Content-Type: application/json" \
-d '{
"session_id": "test-session-123",
"tool_name": "image_generation",
"parameters": {
"prompt": "A beautiful sunset over mountains",
"style": "photorealistic"
},
"request_id": "test-request-1"
}'
Run the agent and test the image generation tool with a prompt:
cd /mcp-server-google-adk-multi-tool-system
python -m mcp_agent.main
Then when the agent is running, try:
You: Generate an image of a cat playing piano
Let's examine how the existing integrations work in the system.
Session Management:
Tool Implementation:
success, data, and optional error fieldsEndpoints:
/api/session/:sessionId/filesystem)/api/adk-webhook) handles requests from Google ADKtool_nameServer-Sent Events (SSE):
/api/sse/:sessionId endpoint enables real-time updatesemitEvent function sends events to connected clientsMCPToolkit Class:
Tool Functions:
status and additional fieldsAgent Definition:
Main Runner:
User Request Flow:
Server-Sent Events Flow:
emitEvent_sse_worker threadAdding a new tool to the MCP server and Google ADK agent involves these key steps:
MCP Server:
Google ADK Agent:
By following this guide, you can easily extend the MCP server and Google ADK agent with new tools and capabilities. The modular design makes it straightforward to add new features while maintaining a consistent interface and error handling approach.
Author: Andrew Milam andrewmichaelmilam@gmail.com
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server with file, API, session, weather, and image tools from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-google-adk-sse-multi-tool-system)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.