mcp
Allows Google Gemini to access and execute the server's MCP tools, resources, and prompts, enabling natural-language user management operations such as creating users and generating fake users.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcpcreate a user named Alice, age 30, email alice@example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Client & Server
A Model Context Protocol (MCP) project built with Bun and TypeScript.
The project includes:
An MCP server exposing tools, prompts, and resources
An MCP client that connects to the server over stdio
Google Gemini integration through the Vercel AI SDK
Redis for user data
Interactive CLI menus for testing MCP functionality
Tech Stack
Bun
TypeScript
Model Context Protocol (MCP)
Vercel AI SDK
Google Gemini
Redis
Zod
Inquirer
Related MCP server: FastAPI + FastMCP + Gemini Integration
Project Structure
mcp/
├── src/
│ ├── client.ts
│ └── server.ts
├── docker-compose.yml
├── package.json
├── bun.lock
└── README.mdRequirements
Before running the project, make sure you have:
Bun
Docker
A Google Gemini API key
Installation
Install the project dependencies:
bun installEnvironment Variables
Create a .env file in the project root:
GEMINI_API_KEY=your_google_gemini_api_keyThe server uses the following Redis connection by default:
redis://localhost:6379You can optionally configure a different Redis connection:
REDIS_URL=redis://localhost:6379Do not commit your .env file to the repository.
Start Redis
Redis is provided through Docker Compose.
Start Redis:
docker compose up -dCheck that the container is running:
docker psThe container is named:
mcp-redisRedis is available on:
localhost:6379Stop Redis with:
docker compose downRedis data is stored in the Docker volume:
redis-dataRun the MCP Server
Start the MCP server with:
bun run server:devThe server uses stdio transport for MCP communication.
Run the MCP Client
Start the interactive client:
bun run client:devThe client automatically starts the MCP server using:
bun run ./src/server.tsAfter connecting, the client displays:
You are connectedYou can then select one of the following options:
Query
Tools
Resources
PromptsQuery
The Query option sends a request to Google Gemini with access to the MCP tools exposed by the server.
For example:
Create a user with name Ivan and age 19 and email ivan@test.testGemini can use the available MCP tools to perform the requested operation.
Tools
The Tools option allows you to select and execute an MCP tool manually.
create-user
Creates a user with the following parameters:
name
age
emailExample:
name: Ivan
age: 19
email: ivan@test.testcreate-random-user
Uses MCP sampling to generate user information and stores the generated user.
Resources
The Resources option allows you to access resources exposed by the MCP server.
users://all
Returns all users stored by the server.
users://{userId}/profile
Returns the profile associated with a user ID.
When selecting a resource containing {userId}, the client asks you to provide the value.
Prompts
The Prompts option displays prompts registered by the MCP server.
generate-fake-user
Generates a fake user with random details.
The client displays the prompt and allows you to execute it using Google Gemini.
MCP Inspector
The project includes the MCP Inspector for inspecting and interacting with the MCP server.
Start it with:
bun run server:inspectComplete Setup
1. Install dependencies
bun install2. Configure Gemini
Create .env:
GEMINI_API_KEY=your_google_gemini_api_key3. Start Redis
docker compose up -d4. Start the client
bun run client:devThe client automatically starts the MCP server.
5. Choose an operation
Query
Tools
Resources
PromptsUseful Commands
Command | Description |
| Install dependencies |
| Start the MCP server |
| Start the MCP client |
| Start the MCP Inspector |
| Start Redis |
| Stop Redis |
Redis
To access the Redis CLI:
docker exec -it mcp-redis redis-cliList keys:
KEYS *Inspect a user:
GET users:{userId}The users:all key is a Redis Set, so use:
SMEMBERS users:allTroubleshooting
Redis connection error
Make sure Redis is running:
docker psIf the container is not running:
docker compose up -dThe default Redis connection is:
redis://localhost:6379Redis WRONGTYPE error
If Redis reports:
WRONGTYPE Operation against a key holding the wrong kind of valuemake sure you are using a Redis command that matches the key's data type.
For example, users:all is a Set:
SMEMBERS users:allrather than:
GET users:allGemini API errors
Check that GEMINI_API_KEY is present in .env and contains a valid Google Gemini API key.
MCP connection errors
Make sure the MCP server can start:
bun run server:devAlso verify that the client uses the correct server path:
const transport = new StdioClientTransport({
command: "bun",
args: ["run", "./src/server.ts"],
});This server cannot be deployed
Maintenance
Related MCP Connectors
Generate contextual prompts and reusable agent skills, evaluate prompts with the 16-dimension Prompt Score, and manage saved work in PromptDrive. Twelve MCP tools also provide authorized access to private Memory for source-grounded answers. Connect over Streamable HTTP using OAuth 2.1 and PKCE. Generation consumes account quota and automatically saves successful results; Memory access follows account permissions and plan limits.
Create and manage AI image and video generations through Quriov's fixed public MCP tools.
Give AI agents identity, scoped access, trusted context, and verifiable actions through MCP.
- 0bridgeOAuthdev.0bridge
Every service you connect, one MCP endpoint for all your AI tools. Sign in once.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with and manage Google Cloud Platform resources including Compute Engine, Cloud Run, Storage, BigQuery, and other GCP services through a standardized MCP interface.16MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language interaction with FastAPI applications through Google's Gemini AI using MCP tools. Provides CRUD operations for user management and application health monitoring through conversational prompts.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access user and message data through MCP resources, providing REST API integration for user management with paginated lists and thread tracking.13 npm2MIT
- FlicenseNot gradedqualityDmaintenanceEnables users to manage tasks with priorities, perform calculations with history, generate secure passwords, and analyze text, all through MCP tools, resources, and prompts.1-