Hono MCP Sample 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., "@Hono MCP Sample Serverwhat's the weather in Tokyo?"
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.
Hono MCP Sample Server
Honoフレームワークとhono/mcpを使用したModel Context Protocol (MCP)
サーバーのサンプル実装です。
機能
このサンプルサーバーは以下のMCP機能を提供します:
リソース
weather://tokyo: 東京の天気情報を取得
news://latest: 最新ニュースヘッドラインを取得
ツール
calculator: 2つの数値を加算
パラメータ:
a(number),b(number)
reverse-string: 文字列を反転
パラメータ:
text(string)
プロンプト
code-review: コードレビューを依頼するプロンプトテンプレート
引数:
code(string)
Related MCP server: MCP (Model Context Protocol) Server
セットアップ
依存関係のインストール
npm install使用方法
開発モード
npm run devビルド
npm run build本番環境で実行
npm startエンドポイント
サーバーが起動すると、以下のエンドポイントが利用可能になります:
http://localhost:3000/- サーバー情報http://localhost:3000/mcp- MCPエンドポイント
技術スタック
Hono: 高速で軽量なWebフレームワーク
hono/mcp: HonoのMCPサポートパッケージ
@modelcontextprotocol/sdk: MCP公式SDK
zod: スキーマ定義(v3系を使用)
TypeScript: 型安全な開発
tsx: TypeScriptの実行環境
構成
mcp-sample/
├── src/
│ └── index.ts # メインサーバーファイル
├── package.json # プロジェクト設定
├── tsconfig.json # TypeScript設定
└── README.md # このファイルカスタマイズ
新しいリソースを追加
mcpServer.registerResource(
"custom resource",
new ResourceTemplate("custom://resource", { list: undefined }),
{
description: "リソースの説明",
mimeType: "text/plain",
},
async (uri) => ({
contents: [
{
url: uri.href,
mimeType: "text/plain",
text: "リソースの内容",
},
],
}),
);新しいツールを追加
mcpServer.registerTool(
"custom-tool",
{
description: "ツールの説明",
inputSchema: {
param1: z.string().describe("パラメータの説明"),
},
},
async ({ param1 }) => {
const result = a + b;
return {
content: [
{
type: "text",
text: `処理結果: ${param1}`,
},
],
};
},
);ライセンス
MIT
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
- AlicenseCqualityFmaintenanceA customizable Model Context Protocol server implementation that enables AI models to interact with external tools including weather queries, Google search, and camera control functionality.Last updated114Apache 2.0
- Flicense-qualityDmaintenanceA server implementation demonstrating how AI models can interact with external tools and services through Model Context Protocol, featuring integrations for calculator functions, GitHub repositories, and Google Maps searches.Last updated
- Flicense-quality-maintenanceA demonstration MCP server that provides calculator tools for arithmetic operations, personalized greeting resources, and code review prompt templates. Enables users to perform basic math calculations, generate dynamic greetings, and access reusable code review templates through the Model Context Protocol.Last updated
- FlicenseBqualityDmaintenanceA demonstration TypeScript MCP server that showcases basic MCP concepts with simple tools (greeting, calculator), text resources, and prompt templates for learning the Model Context Protocol.Last updated2
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP (Model Context Protocol) server for Appwrite
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/y-moriya/mcp-sample'
If you have feedback or need assistance with the MCP directory API, please join our Discord server