Simple-MCP-Server
Click on "Install 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., "@Simple-MCP-ServerIf a car travels 120 miles at 60 mph, how long does the trip take and what's that in kilometers?"
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 Agent Homework
A TypeScript MCP (Model Context Protocol) system built for the assignment in MCP_HOMEWORK_SKILL.md: an Agent Host that loads an Agent Skill (SKILL.md), connects to three MCP servers over all three required transports, discovers/aggregates their tools, and lets Gemini select and call the right tool on the right server.
Architecture
Agent Host (src/host)
skill-loader + connection-manager
+ tool-bridge + gemini-client
|
+------------------+------------------+
| | |
v v v
stdio server local HTTP server public HTTP server
(src/servers/stdio- (src/servers/http- (same http-server.ts,
server.ts) server.ts, no auth) API-key protected)
| | |
+------------------+-------------------+
|
shared tool logic (src/servers/shared/tools.ts)
3 tools (calculator, text_stats, unit_convert) + 1 resource + 1 promptsrc/servers/shared/tools.ts— the single implementation of the 3 tools, 1 resource, and 1 prompt, registered identically on every server so the same logic is reused everywhere (no duplicated business logic).src/servers/stdio-server.ts— MCP over stdio (spawned as a child process).src/servers/http-server.ts— MCP over Streamable HTTP. The exact same file/code runs both the "local" and "public" servers; the only difference is configuration (PORT,PUBLIC_MCP_API_KEY).src/host/connection-manager.ts— the MCP Host: connects to every configured server, discovers tools/resources/prompts, namespaces tool names as<namespace>__<tool>to avoid collisions, and dispatches tool calls back to the owning server.src/host/tool-bridge.ts— converts discovered MCP tools into Gemini function declarations.src/host/gemini-client.ts— the Gemini tool-calling loop (send message → read function calls → dispatch via connection manager → send function responses back → repeat until final text).src/host/skill-loader.ts— loads SKILL.md and injects it as the model's system instruction, so the skill actively shapes tool usage.src/host/agent-host.ts— wires the above together from config/servers.json.src/host/cli.ts— CLI entry point (interactive or--demo).
Related MCP server: mcp-tools-server
Setup
npm installSecrets live in api.env (already gitignored):
API_KEY=your-gemini-api-key
# Optional, only needed once you deploy the public server:
# PUBLIC_MCP_URL=https://your-app.onrender.com/mcp
# PUBLIC_MCP_API_KEY=some-strong-random-keyRunning each component
stdio server (20 pts)
npm run server:stdio # run directly
npm run inspector:stdio # open MCP Inspector against itInspector will discover 3 tools (calculator, text_stats,
unit_convert), 1 resource (docs://unit-conversions), and 1 prompt
(explain-tool-result), and can execute/read all of them.
Local HTTP server
npm run server:http # listens on http://127.0.0.1:8787/mcp, no auth
npm run inspector:http # then connect Inspector to that URLPublic HTTP server (15 pts)
The same http-server.ts becomes the "public" server once
PUBLIC_MCP_API_KEY is set — every request then requires a matching
x-api-key header; missing/invalid keys get 401 Unauthorized.
$env:PORT=8788; $env:PUBLIC_MCP_API_KEY="a-strong-secret"; npm run server:httpDeploying it publicly (Render.com, using the included render.yaml):
git init && git add -A && git commit -m "MCP homework"then push to a GitHub repo you own.In Render: New + → Blueprint → select the repo (it reads
render.yamlautomatically), or create a Web Service manually with:Build command:
npm install && npm run buildStart command:
npm run start:httpHealth check path:
/health
In the Render dashboard, set the
PUBLIC_MCP_API_KEYenvironment variable to a strong secret (never commit it).Once deployed, put the resulting URL + key into
api.env:PUBLIC_MCP_URL=https://<your-service>.onrender.com/mcpandPUBLIC_MCP_API_KEY=<same secret>.Validate with Inspector:
No key → rejected:
curl -X POST https://<url>/mcp -H "Content-Type: application/json" -d "{...}"returns401.With key → works: pass
--header "x-api-key: <secret>"tonpx @modelcontextprotocol/inspector --cli <url> --method tools/list.
Agent Host
npm run agent # interactive CLI
npm run agent:demo # runs a scripted set of demo queriesOn startup the host:
Loads
SKILL.mdas the system instruction.Reads config/servers.json and connects to the stdio server (spawned automatically), the local HTTP server (must already be running), and the public HTTP server (skipped automatically if
PUBLIC_MCP_URL/PUBLIC_MCP_API_KEYaren't set — it's optional so the demo still works without a live deployment).Discovers and namespaces every tool, hands them to Gemini, and dispatches each tool call Gemini makes to the correct MCP server.
Configuration
Server registration is data-driven via config/servers.json
— add/remove servers there instead of editing host code. ${VAR} in a url
is resolved from process.env at connect time; apiKeyEnv names the env var
whose value is sent as x-api-key.
Agent Skill
SKILL.md instructs the agent to prefer calling tools over
guessing at arithmetic/conversions/text stats, to pick one namespaced tool per
logical request, to consult the docs://unit-conversions resource when unsure
about supported conversions, and to explain results in plain language. It is
loaded verbatim into the Gemini system instruction on every run (see
src/host/skill-loader.ts), so its rules directly affect tool selection and
response style — observable in the demo output (e.g. the agent always calls a
tool for arithmetic instead of computing it itself).
Security notes
No secrets are committed;
api.envis gitignored and the public server only readsPUBLIC_MCP_API_KEYfrom the environment.The public HTTP server rejects any request without a matching
x-api-keyheader (401), and accepts requests once a valid key is supplied.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceA lightweight MCP server providing utility tools for math, text processing, data conversion, and URL fetching. It supports both STDIO and SSE communication modes for seamless integration with Claude Desktop and remote AI agents.51
- AlicenseNot gradedqualityBmaintenanceA general-purpose MCP server with utility tools including datetime information, safe math calculations, text statistics, JSON extraction, knowledge base search, and HTTP GET requests. It demonstrates server-side MCP implementation and can be connected to Claude Desktop or LangGraph agents.MIT
- FlicenseNot gradedqualityDmaintenanceProvides math and weather tools accessible via LangGraph agent using MCP protocol with stdio and streamable HTTP transports.1
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.1
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kindinh903/Simple-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server