MCP.so
ログイン

概要

What is unsplash-mcp-server?

The server is a reference implementation and educational guide for building Model Context Protocol (MCP) servers using the TypeScript SDK. It demonstrates core concepts such as tools, resources, and prompts, and provides working code examples for both stdio and SSE transports. It is intended for developers who want to learn how to create their own MCP servers to extend LLM applications.

How to use unsplash-mcp-server?

Clone the repository, install dependencies (npm install @modelcontextprotocol/sdk typescript zod), compile the TypeScript code (npx tsc), and run the server (node build/index.js). The server exposes an example echo tool that returns the input message. Clients can connect via stdio or SSE using the provided client code snippets.

Key features of unsplash-mcp-server

  • Complete MCP server lifecycle: initialization, message exchange, and teardown
  • Example tool (echo) with Zod schema validation
  • Support for stdio and SSE transports with full client examples
  • Covers capabilities: tools, resources, and prompts
  • Custom transport implementation interface

Use cases of unsplash-mcp-server

  • Learning how to implement an MCP server from scratch
  • Starting point for building a custom MCP server with tools/resources
  • Testing MCP client-server communication locally

FAQ from unsplash-mcp-server

Does this server integrate with the Unsplash API?

No. Despite the repository name, the README is a generic MCP server tutorial and does not contain any Unsplash-specific code or API calls.

What are the runtime dependencies?

Node.js version 18 or later, npm, and the packages @modelcontextprotocol/sdk, typescript, and zod.

Which transports does it support?

The guide demonstrates stdio (standard input/output) and SSE (Server-Sent Events) transports. A custom transport interface is also provided.

How are tools defined and invoked?

Tools are defined using server.tool(name, schema, handler). The schema is written with Zod. Clients invoke tools via tools/call JSON-RPC requests.

What is the server’s authentication mechanism?

The README does not implement any authentication. It notes that more complex scenarios may require custom handling.

タグ

「その他」の他のコンテンツ