Skip to main content
Glama

create-bookmark

Save URLs as bookmarks in Raindrop.io with optional titles, tags, and collection IDs using the Raindrop.io MCP Server. Simplify bookmarking through AI-assisted workflows.

Instructions

Create a new bookmark in Raindrop.io

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionNoCollection ID to save to (optional)
tagsNoTags for the bookmark (optional)
titleNoTitle for the bookmark (optional)
urlYesURL to bookmark

Implementation Reference

  • Executes the create-bookmark tool by parsing arguments with Zod schema, calling RaindropAPI.createBookmark, and returning a success response.
    if (name === "create-bookmark") {
      const { url, title, tags, collection } =
        CreateBookmarkSchema.parse(args);
    
      const bookmark = await api.createBookmark({
        link: url,
        title,
        tags,
        collection: { $id: collection || 0 },
      });
    
      return {
        content: [
          {
            type: "text",
            text: `Bookmark created successfully: ${bookmark.item.link}`,
          },
        ],
      };
    }
  • Tool schema definition for 'create-bookmark', including input schema exposed to the MCP client.
    {
      name: "create-bookmark",
      description: "Create a new bookmark in Raindrop.io",
      inputSchema: {
        type: "object",
        properties: {
          url: {
            type: "string",
            description: "URL to bookmark",
          },
          title: {
            type: "string",
            description: "Title for the bookmark (optional)",
          },
          tags: {
            type: "array",
            items: { type: "string" },
            description: "Tags for the bookmark (optional)",
          },
          collection: {
            type: "number",
            description: "Collection ID to save to (optional)",
          },
        },
        required: ["url"],
      },
    },
  • Zod validation schema for create-bookmark inputs, used in the handler for strict type checking.
    export const CreateBookmarkSchema = z.object({
      url: z.string().url(),
      title: z.string().optional(),
      tags: z.array(z.string()).optional(),
      collection: z.number().optional(),
    });
  • Helper method in RaindropAPI class that performs the actual API call to create a bookmark on Raindrop.io.
    async createBookmark(params: {
      link: string;
      title?: string;
      tags?: string[];
      collection?: { $id: number };
    }) {
      return this.makeRequest<{ item: { link: string } }>(
        "/raindrop",
        "POST",
        params,
      );
    }
  • src/index.ts:29-31 (registration)
    Tool registration via the ListToolsRequest handler, which returns the list of tools including 'create-bookmark'.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools };
    });
Install Server

Other Tools

Related Tools

Latest Blog Posts

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/hiromitsusasaki/raindrop-io-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server